[JBoss JIRA] Resolved: (RF-1375) rich:messages is broken when FacesMessages is used from an action that returns an outcome
by Alexander Smirnov (JIRA)
[ http://jira.jboss.com/jira/browse/RF-1375?page=all ]
Alexander Smirnov resolved RF-1375.
-----------------------------------
Fix Version/s: 3.1.2
3.1.3
3.2.0
Resolution: Done
Assignee: Alexander Smirnov (was: Anton Belevich)
There is behavior from attempt to create "smart" validator, to avoid error massages for the "unvisitet" fields.
Now, it's disabled by default.
> rich:messages is broken when FacesMessages is used from an action that returns an outcome
> -----------------------------------------------------------------------------------------
>
> Key: RF-1375
> URL: http://jira.jboss.com/jira/browse/RF-1375
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.1.2
> Reporter: Gavin King
> Assigned To: Alexander Smirnov
> Priority: Critical
> Fix For: 3.1.2, 3.1.3, 3.2.0
>
>
> 1. Create a project using JBoss Tools
> 2. Create an action called "hello"
> 3. Test it (works)
> 4. Change /home.xhtml to use rich:messages instead of h:messages
> 5. Changle Hello.java as follows:
> public String hello()
> {
> //implement your business logic here
> log.info("hello.hello() action called by #{identity.username}");
> facesMessages.add("hello");
> return "/home.xhtml";
> }
> 6. Test it (the message is not displayed correctly)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 4 months
[JBoss JIRA] Commented: (RF-1289) Getting A4J Undefined though My renderer is properly adding support as child to the component.
by Karthik M (JIRA)
[ http://jira.jboss.com/jira/browse/RF-1289?page=comments#action_12388180 ]
Karthik M commented on RF-1289:
-------------------------------
Thanks Nick for your early response...
This problem i quoted, is part of a big project and i do not have a small runnable for the same. Please refer to source in the ajax4jsfHelp zip that i have attached.
I am using ajax4jsf (not richfaces) 1.0.1 and well have tested with mainy stable / beta and maitenace releases with same A4J undefined error.
hoping to get some lead..thanks !
> Getting A4J Undefined though My renderer is properly adding support as child to the component.
> ----------------------------------------------------------------------------------------------
>
> Key: RF-1289
> URL: http://jira.jboss.com/jira/browse/RF-1289
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.2.0
> Environment: Windows , Tomcat , Java 1.5, ajax4jsf1.1.0 , oscacche2.3.2
> Reporter: Karthik M
> Assigned To: Nick Belaevski
> Fix For: 3.2.0
>
> Attachments: ajax4jsf Help.zip, web.xml
>
> Original Estimate: 4 days
> Remaining Estimate: 4 days
>
> To replicate this behaviour follow these steps:
> 1) create a custom component and its rendrerer.
> 2) In this parent renderere code try to create 2 child components to this parent component programatically (say 2 input texts..).
> 3) Each of this individual child components has to be ajax aware. So we add support objects to it with neccessary metadata.
> 4) in the xhtml try to verfy whether all the components are rendrered correctly and whether their defined events fire AJAX call.
> There is a thread on this forum where i have staed ths problem...URL is attached..
> I have already set code to sergeysmirnov(a)dev.java.net with subject Query on ajax4jsf.
> I have noted that till the last line of my renderer code all flow is correct..only whne HTML is generated it has no AJAX script declaration or support objects...but the A4J submit function exists...
> I have tried with several beta as well as stable versions but it did not work.
> Please help with this issue..kindly suggest any ideas to make this work..
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 4 months
[JBoss JIRA] Commented: (RF-1289) Getting A4J Undefined though My renderer is properly adding support as child to the component.
by Nick Belaevski (JIRA)
[ http://jira.jboss.com/jira/browse/RF-1289?page=comments#action_12388168 ]
Nick Belaevski commented on RF-1289:
------------------------------------
Could you please attach runnable project to see the problem?
And what about 3.2.0 verson?
> Getting A4J Undefined though My renderer is properly adding support as child to the component.
> ----------------------------------------------------------------------------------------------
>
> Key: RF-1289
> URL: http://jira.jboss.com/jira/browse/RF-1289
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.2.0
> Environment: Windows , Tomcat , Java 1.5, ajax4jsf1.1.0 , oscacche2.3.2
> Reporter: Karthik M
> Assigned To: Nick Belaevski
> Fix For: 3.2.0
>
> Attachments: ajax4jsf Help.zip, web.xml
>
> Original Estimate: 4 days
> Remaining Estimate: 4 days
>
> To replicate this behaviour follow these steps:
> 1) create a custom component and its rendrerer.
> 2) In this parent renderere code try to create 2 child components to this parent component programatically (say 2 input texts..).
> 3) Each of this individual child components has to be ajax aware. So we add support objects to it with neccessary metadata.
> 4) in the xhtml try to verfy whether all the components are rendrered correctly and whether their defined events fire AJAX call.
> There is a thread on this forum where i have staed ths problem...URL is attached..
> I have already set code to sergeysmirnov(a)dev.java.net with subject Query on ajax4jsf.
> I have noted that till the last line of my renderer code all flow is correct..only whne HTML is generated it has no AJAX script declaration or support objects...but the A4J submit function exists...
> I have tried with several beta as well as stable versions but it did not work.
> Please help with this issue..kindly suggest any ideas to make this work..
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 4 months
[JBoss JIRA] Updated: (RF-1289) Getting A4J Undefined though My renderer is properly adding support as child to the component.
by Karthik M (JIRA)
[ http://jira.jboss.com/jira/browse/RF-1289?page=all ]
Karthik M updated RF-1289:
--------------------------
Attachment: web.xml
web.xml attached..please refer to other attachements for entire code i am using...
> Getting A4J Undefined though My renderer is properly adding support as child to the component.
> ----------------------------------------------------------------------------------------------
>
> Key: RF-1289
> URL: http://jira.jboss.com/jira/browse/RF-1289
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.2.0
> Environment: Windows , Tomcat , Java 1.5, ajax4jsf1.1.0 , oscacche2.3.2
> Reporter: Karthik M
> Assigned To: Nick Belaevski
> Fix For: 3.2.0
>
> Attachments: ajax4jsf Help.zip, web.xml
>
> Original Estimate: 4 days
> Remaining Estimate: 4 days
>
> To replicate this behaviour follow these steps:
> 1) create a custom component and its rendrerer.
> 2) In this parent renderere code try to create 2 child components to this parent component programatically (say 2 input texts..).
> 3) Each of this individual child components has to be ajax aware. So we add support objects to it with neccessary metadata.
> 4) in the xhtml try to verfy whether all the components are rendrered correctly and whether their defined events fire AJAX call.
> There is a thread on this forum where i have staed ths problem...URL is attached..
> I have already set code to sergeysmirnov(a)dev.java.net with subject Query on ajax4jsf.
> I have noted that till the last line of my renderer code all flow is correct..only whne HTML is generated it has no AJAX script declaration or support objects...but the A4J submit function exists...
> I have tried with several beta as well as stable versions but it did not work.
> Please help with this issue..kindly suggest any ideas to make this work..
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 4 months
[JBoss JIRA] Commented: (RF-1289) Getting A4J Undefined though My renderer is properly adding support as child to the component.
by Karthik M (JIRA)
[ http://jira.jboss.com/jira/browse/RF-1289?page=comments#action_12388146 ]
Karthik M commented on RF-1289:
-------------------------------
Nick Please note programtically adding components means i refer to JSF components and not supports components..i am actually adding supports dynamically throught out all my ajax xcomponents and it works.only when components are generated dynamically using cretaeComponent and when added with support i get a4j undefined. please help me...
> Getting A4J Undefined though My renderer is properly adding support as child to the component.
> ----------------------------------------------------------------------------------------------
>
> Key: RF-1289
> URL: http://jira.jboss.com/jira/browse/RF-1289
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.2.0
> Environment: Windows , Tomcat , Java 1.5, ajax4jsf1.1.0 , oscacche2.3.2
> Reporter: Karthik M
> Assigned To: Nick Belaevski
> Fix For: 3.2.0
>
> Attachments: ajax4jsf Help.zip
>
> Original Estimate: 4 days
> Remaining Estimate: 4 days
>
> To replicate this behaviour follow these steps:
> 1) create a custom component and its rendrerer.
> 2) In this parent renderere code try to create 2 child components to this parent component programatically (say 2 input texts..).
> 3) Each of this individual child components has to be ajax aware. So we add support objects to it with neccessary metadata.
> 4) in the xhtml try to verfy whether all the components are rendrered correctly and whether their defined events fire AJAX call.
> There is a thread on this forum where i have staed ths problem...URL is attached..
> I have already set code to sergeysmirnov(a)dev.java.net with subject Query on ajax4jsf.
> I have noted that till the last line of my renderer code all flow is correct..only whne HTML is generated it has no AJAX script declaration or support objects...but the A4J submit function exists...
> I have tried with several beta as well as stable versions but it did not work.
> Please help with this issue..kindly suggest any ideas to make this work..
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 4 months
[JBoss JIRA] Reopened: (RF-1289) Getting A4J Undefined though My renderer is properly adding support as child to the component.
by Karthik M (JIRA)
[ http://jira.jboss.com/jira/browse/RF-1289?page=all ]
Karthik M reopened RF-1289:
---------------------------
Hi All,
Ok i am doing the following to get this issue..and i need some solution fast, please see steps below:
steps:
1) create a new tag - say myComponent.
2) myComponent will be container for dynamic components.
3) in myComponent renderer create one list box programatically as below :
UIAjaxSelectManyListbox availableSelectMany = (UIAjaxSelectManyListbox)context.getApplication().createComponent("ips.component.UIAjaxSelectManyListbox");
String listName = component.getId()+"_SourceListId";
availableSelectMany.setId(listName);
//Now set AJAX related data...
availableSelectMany.setAction(dlist.getAvaliableListAction());
availableSelectMany.setReRender(dlist.getAvaliableListReRender());
availableSelectMany.setOnComplete(dlist.getAvaliableListOnComplete());
availableSelectMany.setEvent("onChange");
availableSelectMany.setParent(component);
//Rendering
Util.renderPassThruAttributes(writer,component,null);
Util.renderBooleanPassThruAttributes(writer,component,null);
Here availableSelectMany already has its own renderer...as below
public void encodeEnd(FacesContext context, UIComponent component)
throws IOException
{
UIAjaxSelectManyListbox select = (UIAjaxSelectManyListbox)component;
if(select.getAction()!=null && select.getEvent()!=null)
{
org.ajax4jsf.ajax.UIAjaxSupport support = null;
if(select.getAjaxSupportId()==null)
{
support = (org.ajax4jsf.ajax.UIAjaxSupport)context.
getApplication().createComponent("org.ajax4jsf.ajax.Support");
}
else
{
select.getChildren().remove(0);
support = (org.ajax4jsf.ajax.UIAjaxSupport)context.
getApplication().createComponent("org.ajax4jsf.ajax.Support");
}
support.setId(select.getId()+"dropDownManySupport");
support.setParent(component);
MethodBinding mb = context.getApplication().createMethodBinding(select.getAction(), null);
support.setAction(mb);
support.setEvent(select.getEvent());
support.setReRender(select.getReRender());
support.setOncomplete(select.getOnComplete());
if(select.getScriptToChain()!=null)
{
support.setOnsubmit(select.getScriptToChain());
}
select.getChildren().add(support);
select.setAjaxSupportId(support.getClientId(context));
}
super.encodeEnd(context, select);
}
So when JSF renders myComponent - our list box renderer is called.
Now my List box comes up but when i change selection i see that i get A4j undefined. i checekd source it has a4j submit and other methods.
Please note in my environment Ajax4jsf works fine for all ajax componets in which componets which are not generated dynamically. i do use faceltes.
> Getting A4J Undefined though My renderer is properly adding support as child to the component.
> ----------------------------------------------------------------------------------------------
>
> Key: RF-1289
> URL: http://jira.jboss.com/jira/browse/RF-1289
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.2.0
> Environment: Windows , Tomcat , Java 1.5, ajax4jsf1.1.0 , oscacche2.3.2
> Reporter: Karthik M
> Assigned To: Nick Belaevski
> Fix For: 3.2.0
>
> Attachments: ajax4jsf Help.zip
>
> Original Estimate: 4 days
> Remaining Estimate: 4 days
>
> To replicate this behaviour follow these steps:
> 1) create a custom component and its rendrerer.
> 2) In this parent renderere code try to create 2 child components to this parent component programatically (say 2 input texts..).
> 3) Each of this individual child components has to be ajax aware. So we add support objects to it with neccessary metadata.
> 4) in the xhtml try to verfy whether all the components are rendrered correctly and whether their defined events fire AJAX call.
> There is a thread on this forum where i have staed ths problem...URL is attached..
> I have already set code to sergeysmirnov(a)dev.java.net with subject Query on ajax4jsf.
> I have noted that till the last line of my renderer code all flow is correct..only whne HTML is generated it has no AJAX script declaration or support objects...but the A4J submit function exists...
> I have tried with several beta as well as stable versions but it did not work.
> Please help with this issue..kindly suggest any ideas to make this work..
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 4 months