greptilian logo

IRC log for #javaee, 2014-01-29

Please see http://irclog.greptilian.com/javaee for which days have been logged.

| Channels | #javaee index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
00:27 Naros_ joined ##javaee
00:46 kobain joined ##javaee
02:29 apric joined ##javaee
02:30 apric hey guys, anyone still awake? having problems with an auto-generated value "id" column: em.persist(entity) sets a non-null "id" value even when the transaction is aborted. why does hibernate restore the previous entity state (id=null) ? (hibernate 4.3, JPA, JSF, JEE6)
02:32 pdurbin whartung: nice SO post about databases and binaries. (apric: I have no idea, sorry)
02:40 apric this _may_ have something to do with the generation strategy: TABLE
02:44 apric nope, same with with SEQUENCE :(
03:18 pdurbin semiosis: kinda funny that http://camel.apache.org punts to http://stackoverflow.com/questions/8845186/what-exactly-is-apache-camel :)
03:24 sajjadg joined ##javaee
03:49 kobain_ joined ##javaee
04:45 firebird1 joined ##javaee
04:46 firebird1 i'm talking to client who dont know sockets but good in struts , jsf .... how ?
04:49 firebird1 joined ##javaee
05:50 kotten_ firebird1 what do you want to do?
05:55 kotten_ apric I think this has something to do with the way you save it
05:55 kotten_ session.save(<Object>), session.persist(<Object>) and that stuff
06:18 apric kotten_: i'm using container-managed persistence (JEE6)
06:19 apric i'm simply calling em.persist() which at some point raises a unique key constraint violation (from database), tx rollback
06:20 apric but the entity "id" is not null anymore, even though it has never been persisted to the databse
06:21 apric which leads to unexpected behavior in my application, which ich checking for id==null to find out if the record is "new"
06:25 apric i could add some additional state variable to my code and keep it in sync with the entity state, but that's a hack in my opinion :(
06:45 book` joined ##javaee
06:55 weyer joined ##javaee
07:14 neuro_sys joined ##javaee
07:45 Bombe joined ##javaee
08:04 AlexCzar joined ##javaee
08:08 AlexCzar|2 joined ##javaee
08:19 fabioportieri joined ##javaee
08:23 fabioportieri morning
08:35 weyer joined ##javaee
08:43 AlexCzar joined ##javaee
09:24 weyer joined ##javaee
09:27 AlexCzar joined ##javaee
09:30 AlexCzar|2 joined ##javaee
09:45 firebird1 joined ##javaee
10:36 weyer joined ##javaee
10:58 weyer joined ##javaee
11:01 pdurbin fabioportieri: morning
11:02 fabioportieri hello pdurbin
11:17 weyer joined ##javaee
11:45 fabioportieri in jsf: "The h:panelGrid tag is used to represent an entire table. The h:panelGroup tag is used to represent rows in a table. Other tags are used to represent individual cells in the rows."  but using icefaces it sets each panelgroup inside a td, i was expecting a row for each panelgroup ?
11:49 pdurbin fabioportieri: where is that quote from? can you give a link?
11:49 fabioportieri http://docs.oracle.com/cd/E19798-01/821-1841/bnasc/
11:49 pdurbin fabioportieri: thanks
11:49 fabioportieri no prob
11:53 neuro_sys joined ##javaee
12:01 pdurbin so this is using html tables for layout?
12:03 fabioportieri yes
12:05 Guest99210 joined ##javaee
12:30 sess fabioportieri: each jsf component will be a cell
12:30 sess children of panelgroup will be inside a single cell
12:30 sess im not sure what your problem is
12:41 fabioportieri sess: i expected each panelgroup inside a panelgrid to generate a row
12:43 sess fabioportieri: you are missunderstanding the text
12:43 sess they are not meant to be used together
12:43 sess they are two different layout tags that do not cooperate
12:43 sess you use a panelGroup inside a panelGrid when you want multiple elements inside the same cell
12:44 fabioportieri yes
12:44 sess if you are not happy with how panelGrid works, just use a normal html table
12:44 fabioportieri no, it's not a real problem, just wondering
12:45 fabioportieri but the text states: panelgrid represent a table. panelgroup represent rows in a table. so...
12:46 fabioportieri i don't see how panelgroup is representing table rows
12:47 sess it has nothing to do with tables
12:47 sess probably just clumsily described
12:47 sess The panelGroup tag is a container component that renders its child components. It is intended to be used in situations where it is desirable to include several components but when only one child component is allowed, such as within a panelGrid column or a facet component.
12:47 sess theres a proper description
12:48 fabioportieri it has to do with tables though
12:49 sess nope
12:49 sess it's the jsf version of a span
12:50 sess it renders a span i think
12:50 fabioportieri a div iirc
12:50 sess or a div, depending on the layout attribute
12:50 sess but a span by default, if layout="block" is not used
12:50 fabioportieri it renders a div by default to me
12:50 fabioportieri icefaces at least
12:51 fabioportieri probably you're right for h:panelGroup
12:52 fabioportieri aniway the doc clearly states
12:52 fabioportieri Laying Out Components with the h:panelGrid and h:panelGroup Tags"
12:52 sess oh i didnt know icefaces had their own
12:52 sess they are alternatives
12:52 sess not combined
12:52 fabioportieri but maybe it works as expected with standard jsf
12:52 fabioportieri and the icefaces implementation differs
12:52 sess if you look at the examples below, they aren't combined
12:54 sess it also says panelGrid is used to represent an ENTIRE table
12:54 sess meaning no other tags are used in the process
12:54 fabioportieri ..and panelGroup its rows
12:54 fabioportieri i think that may be true for h tags, just not for icefaces tags
12:55 fabioportieri because i recall i managed to create rows with panelgroup
12:55 fabioportieri but probably with the h tags
12:55 fabioportieri as the docs says
12:57 fabioportieri (i was using ice:panelGroup && ice:panelGrid
13:15 sess fabioportieri: no it does not say ITS rows
13:15 sess it says rows
13:15 sess there is NO such functionality in jsf
13:16 sess the only row you create with panelgroup is rows of divs
13:16 fabioportieri then how can you create rows?
13:16 sess I cannot speak for ice tags though whatever their purpose is
13:16 sess with <tr>
13:17 sess you dont need jsf to create a table
13:17 fabioportieri why not? isn't the purpose of panelGrid?
13:17 fabioportieri so <h:panelGrid> <tr>...</tr> </h:panelGrid> ?
13:18 sess no..
13:18 sess panelgrid renders rows automatically
13:18 fabioportieri sess: ok but how can you control how many rows?
13:19 sess with the columns attribute in combination with content
13:19 sess what are you trying to render?
13:19 sess static or dynamic content?
13:19 fabioportieri columns aren't td?
13:19 fabioportieri sess: i just miss how you can control rows inside a panelGrid
13:19 sess panelgrid is just a convenience thing for rendering for example label - input - message in a table without requiring so much markup
13:20 sess what kind of control
13:20 fabioportieri sess: specify a fixed number of rows
13:20 sess then use a <table>
13:20 sess that what it is for
13:20 fabioportieri i thought panelGrid was some convenience tag for tables
13:20 sess it is
13:20 fabioportieri but if i can't specify rows as i wish
13:21 fabioportieri what's its purpose?
13:21 sess the number of rows is implicit
13:21 apric it is: a themed table basically
13:21 sess from the number of elements you place in the table
13:21 fabioportieri i can specify columns, not rows..
13:21 sess ^
13:21 fabioportieri sess: indeed, that's why i thought with panelGroup i could do it!
13:21 fabioportieri as the doc states
13:21 sess 1. why? 2. no it doesnt
13:21 sess one again
13:21 sess what are you trying ti accomplish
13:22 sess what do you want to place in the table
13:22 fabioportieri nothing i'm just curious in how it works
13:22 sess it works by rendering each child in a table, and switching row every n children
13:22 sess where n is the columns attribute
13:22 sess thats it
13:22 fabioportieri but if i have
13:23 sess columns="3" and placing 9 elements in it
13:23 fabioportieri two panelGroup inside a panelGrid
13:23 sess will construct them in a 3x3 table
13:23 fabioportieri that means the panelGrid has two children, correct?
13:23 sess 2 panelgroups are simply 2 children
13:23 sess yes
13:23 fabioportieri then i expect it to generate two rows
13:23 fabioportieri right?
13:23 sess for the 10th time no
13:23 sess panelgroup are children like any other
13:23 sess it renders 2 panelgroups like it renders 2 inputs
13:23 sess in 2 different cells
13:23 fabioportieri sess> it works by rendering each child in a table, and switching row every n children
13:23 sess yes
13:24 fabioportieri what do you mean by switching row every n children?
13:25 sess <h:panelGroup columns="2> <input/><input/>  <input/>  <input/>  <input/>   </h:panelGroup> renders a table with 3 rows, 2 cells each except the last one that contains a single cell
13:25 sess if the input were jsf elements at least
13:25 sess if columns is changed to 3
13:25 sess it renders 2 rows with 3 columns, the last rows would only have 2 inputs
13:25 fabioportieri and if instead of input i would have placed panelGroup s?
13:25 sess same behavior
13:26 sess the difference is that you can get multiple elements into the same cell using panelGroup since it can have other elements as children
13:26 fabioportieri why you said no then ?
13:26 fabioportieri yes i know that
13:26 sess because you said something wrong?
13:26 fabioportieri [14:23] <fabioportieri> then i expect it to generate two rows [14:23] <fabioportieri> right? [14:23] <sess> for the 10th time no
13:27 fabioportieri aaargh
13:27 sess i dont know why you keep confusing yourself
13:27 sess the behavior is extremly simple
13:28 fabioportieri so if i have two panelgroup inside a panelgrid.. how many rows?
13:28 sess depends on your columns attribute
13:28 fabioportieri if column=1 2 rows, if 2 1 row?
13:28 sess with columns="1": 2 rows
13:28 sess yes
13:29 fabioportieri ok that make sense
13:29 sess regardless of children inside the panelgroups
13:29 fabioportieri finally!
13:29 sess !
13:29 fabioportieri aha
13:29 sess panelgrid only looks at top level children
13:29 sess thats why you can use panelgroup to have several elements inside the same cell
13:29 fabioportieri yes
13:30 fabioportieri friggin oracle docs confuses me :)
13:31 fabioportieri " The h:panelGroup tag is used to represent rows in a table" <- that is just wrong then
13:31 fabioportieri it has nothing to do with tables
13:31 fabioportieri as you said
13:33 sess yeah either a typo or someone confused about html elements
13:35 fabioportieri meh
13:35 fabioportieri thanks for your time sess
13:35 sess np
14:16 neuro_sys joined ##javaee
14:26 Naros joined ##javaee
15:21 kobain joined ##javaee
15:34 neuro_sy1 joined ##javaee
15:43 weyer joined ##javaee
16:01 mocrunsthecity joined ##javaee
16:18 cem1 joined ##javaee
16:18 cem1 hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
16:33 sajjadg cem1: hi !
16:33 cem1 few questions on aop
16:34 cem1 how aop is realted with DI ?
16:42 pdurbin cem1: what does aop mean to you?
16:46 weyer joined ##javaee
16:47 fabioportieri it's not
16:48 Guest99210 joined ##javaee
17:06 neuro_sys joined ##javaee
17:18 cem1 i'm very hungry and sleepy later
17:18 cem1 sorry all
17:19 fabioportieri me too
17:20 pdurbin tough question when you're sleepy :)
17:34 semiosis ooh, look what I found!  http://nicoulaj.github.io/vagrant-maven-plugin/
18:08 weyer joined ##javaee
18:44 Naros left ##javaee
18:45 weyer joined ##javaee
18:47 Jhosepth joined ##javaee
19:54 kobain_ joined ##javaee
19:58 fohbahz joined ##javaee
20:21 sajjadg semiosis: what's it?
20:34 mocrunsthecity joined ##javaee
20:35 mocrunst_ joined ##javaee
20:36 mocrunsthecity joined ##javaee
20:49 Yegor joined ##javaee
20:51 Yegor Hi all! I have following question. I try to implement menu with JSF and primefaces. I have menu on left side of my page.On click on menu item i include different pages with ui:include tag, those contains dynamically content, that drawned with using ui:repeat and p:commandButton inside of ui:repeat. In included pages p:commandButton does not invoke method of the managed bean not with action nor with actionListener and also html code of page contain ui:repeat tag
20:51 Yegor . What i'm doing wrong.
21:01 mocrunsthecity joined ##javaee
21:19 mocrunsthecity joined ##javaee
21:24 weyer joined ##javaee
21:30 weyer joined ##javaee
21:34 mocrunsthecity joined ##javaee
21:36 mocrunsthecity joined ##javaee
22:20 neuro_sys hello
23:13 pdurbin semiosis: I like the example: http://nicoulaj.github.io/vagrant-maven-plugin/examples/running-a-vm-during-integration-tests.html
23:14 semiosis pdurbin: !!!!
23:14 pdurbin hmm?
23:14 semiosis my chat with purpleidea, author of the glusterfs puppet module... https://botbot.me/freenode/gluster/msg/10314909/
23:15 semiosis was just ranting at him about how excited I am to have maven kick off a vagrant build of a gluster server & run java integration tests against it
23:15 semiosis for my glusterfs-java-filesystem project, that is
23:23 sfisque joined ##javaee
23:34 weyer joined ##javaee
23:41 pdurbin semiosis: sorry, trying to feed kids and pay a plumber. leak fixed! \o/
23:42 semiosis take care of that
23:57 whartung plumbers…don't get me started on plumbers...

| Channels | #javaee index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

Please see http://irclog.greptilian.com/javaee for which days have been logged.