-
1. Re: how to get dynamic values for reRender in a4j
ilya_shaikovsky May 8, 2007 7:58 AM (in response to meenak)please specify the problem more preciselly.. I see you use reRender pointed to some collection. It's right way. Just fill it while action execution.
-
2. Re: how to get dynamic values for reRender in a4j
meenak May 8, 2007 7:59 AM (in response to meenak)sorry the alignment was not proper
Here is the sample code :
<h:inputTextarea id="man_comm1" value="#{emp.empstate.comment3}" disabled="#{focal.edit3}" rendered="#{emp.empstate.rencom3}" rows="5" cols="40"/>
<h:inputTextarea id="man_comm2" value="#{emp.empstate.prevComment3}" rows="5" cols="40" rendered="#{emp.empstate.rencom3}" readonly="true"/>
<a4j:commandLink styleClass="button" reRender="#{emp.empstate.ren}" action="#{emp.empstate.updatecomments}">
<h:graphicImage value="/images/button_update.jpg" styleClass="button" />
<f:param name="sid" value="#{emp.empstate.model.employee.personSeqId}"/>
</a4j:commandLink>
Thank you in advance -
3. Re: how to get dynamic values for reRender in a4j
meenak May 8, 2007 8:09 AM (in response to meenak)
g.murugaraj: Id['s] (in format of call UIComopnent.findComponent()) of components, rendered in case of AjaxRequest caused by this component. Can be single id, comma-separated list of Id's, or EL Expression with array or Collection
g.murugaraj: at office
g.murugaraj: http://labs.jboss.com/file-access/default/members/jbossajax4jsf/freezone/docs/devguide/ch06s04.html
Sent at 3:04 PM on Tuesday
g.murugaraj: did you get any idea on this or stuck ?
meena: sir check this------------------------http://labs.jboss.com/file-access/default/members/jbossajax4jsf/freezone/docs/devguide/SettingsForDifferentEnvironments.html
Sent at 4:12 PM on Tuesday
g.murugaraj: i guess, we need to mention in web.xml ..right
meena: yes sir but
i could not find any examples till now checking
g.murugaraj: ok
meena: http://lists.jboss.org/pipermail/richfaces-svn-commits/2007-April/000547.html
g.murugaraj: do one thing./
go here : https://www.jboss.com/index.html?op=register&module=user
user: muruganraj
pass: millennium
post this question.. : means how to get the dynamic values for Rerender in a4j
meena: ok sir
Sent at 4:21 PM on Tuesday
g.murugaraj: provide sample code..
give code two textarea
and a4j:commandlink..
meena: ok sir
sir password did not match
g.murugaraj: ok wait
hope they deactivated my a/c
can u create a new for you (dummy a/c)
meena: ok sir
g.murugaraj: let me ask one Q
why no Rerendered for <h:commandlink>
meena: sir rendered or reRender
?
g.murugaraj: reRender
meena: sir we have only rendered for jsf tags
g.murugaraj: no...i guess.. reRender only for ajax tags..
meena: reRendered is for a4j
yes sir
g.murugaraj: ok
step 2 )
create a/c
http://labs.jboss.com/j
and post..
meena: ok sir
g.murugaraj: give dummy names..
we can use for our future posting../
meena: yes sir
Sent at 4:34 PM on Tuesday
g.murugaraj: before posting. .pls send me.. i'll check
meena: ok sir
Sent at 5:09 PM on Tuesday
meena: shall i remove reRender="#{emp.empstate.ren}" while posting
g.murugaraj: keep as it as..
that is how dynamic attruibutes.. they can see..
meena: ok sir
In one of our pages we have around six textareas and we have to reRender only the textareas where the text is entered when we click on the command link .
So i need to get the list of the ids that should be reRendered dynamically.
here is the sample code :
g.murugaraj: o
ok
Sent at 5:18 PM on Tuesday
g.murugaraj: once you post.. get the posting ID
Sent at 5:26 PM on Tuesday
g.murugaraj: hope someone replied..
did u see
meena: sir where do we get the id
g.murugaraj: http://jboss.com/index.html?module=bb&op=viewtopic&t=108127
click on
Sent at 5:31 PM on Tuesday
g.murugaraj: give me that before reply
meena: here in
reRender="#{emp.empstate.ren}"
iam just using a string variable and assigning the static ids in the bean is there any other way through which i can get them dynamically
Sent at 5:35 PM on Tuesday
g.murugaraj: ---------------------
Hi Shaik,
Thank you for reply.
In reRender, we are just passing one name(id) of textarea to {emp.empstate.ren} to check whether we could pass this from bean to jsf page. We found that we could successfully pass it.
Would it be possible to tell us how to get dynamic values based on the input? -
4. Re: how to get dynamic values for reRender in a4j
meenak May 8, 2007 8:11 AM (in response to meenak)pl ignore previous posting
-
5. Re: how to get dynamic values for reRender in a4j
meenak May 8, 2007 8:13 AM (in response to meenak)Hi Shaik,
Thank you for reply.
In reRender, we are just passing one name(id) of textarea to {emp.empstate.ren} to check whether we could pass this from bean to jsf page. We found that we could successfully pass it.
Would it be possible to tell us how to get dynamic values based on the input? -
6. Re: how to get dynamic values for reRender in a4j
meenak May 8, 2007 8:14 AM (in response to meenak)Hi Shaik,
Thank you for reply.
In reRender, we are just passing one name(id) of textarea to {emp.empstate.ren} to check whether we could pass this from bean to jsf page. We found that we could successfully pass it.
Would it be possible to tell us how to get dynamic values based on the input? -
7. Re: how to get dynamic values for reRender in a4j
meenak May 8, 2007 8:16 AM (in response to meenak)wait