Non existing views are rendered and throw an exception instead of 404 with myfaces 2.1.9

2012-11-13 Thread Marcus Büttner
a externalContext.dispatch(viewId). This dispatch returns an error with status 404. Than it's called: wrappedResponse.flushToWrappedResponse(); Mojarra does after that a responseComplete, MyFaces does not. Could that be the problem? regards Marcus Büttner

Re: Ajax update of a composite component within ui:repeat doesn't work

2012-04-17 Thread Marcus Büttner
. regards, Leonardo Uribe 2012/4/16 Marcus Büttner buettner.mar...@gmail.com: Hi, This following example works with MyFaces 2.1.6 but not with 2.1.7. mycc.xhtml: cc:interface cc:attribute name=state type=ExampleModel.State/ /cc:interface cc:implementation

Ajax update of a composite component within ui:repeat doesn't work

2012-04-16 Thread Marcus Büttner
Hi, This following example works with MyFaces 2.1.6 but not with 2.1.7. mycc.xhtml: cc:interface cc:attribute name=state type=ExampleModel.State/ /cc:interface cc:implementation h:selectBooleanCheckbox value=#{cc.attrs.state.state} f:ajax execute=@this render=@form/

Re: @ViewAccessScoped PreDestroy

2011-06-24 Thread Marcus Büttner
Hi Pieter, the behavior which you describe is provided by ViewScope. If you navigate to a different view the old bean is destroyed. Regards Marcus 2011/6/23 Pieter Martin pieter.mar...@gmail.com Hi, I trying to use @ViewAccessScoped beans but am not getting the expected behavior. I

Re: Tomahawk, Trinidad or Tobago

2011-06-08 Thread Marcus Büttner
I've chosen tomahawk because of the clear and simple html output. if you want to render xhtml conform output (which means for example do not use tables for creating layout) with tomahawk there's a chance. ;-) Sure, you have to spend more time in css and styling but only in the beginning of the

Re: JBoss 6: problem with tomahawk

2011-05-02 Thread Marcus Büttner
Hi, in the current sandbox project 1.1.11-SNAPSHOT the fieldset is already removed. regards, Marcus 2011/5/1 Anton Gavazuk antongava...@gmail.com Hi Leonardo, you are absolutely right, I had 2 fieldset packages - first was coming from tomahawk library and second was from tomahawk-sandbox

Re: JBoss 6: problem with tomahawk

2011-05-02 Thread Marcus Büttner
have to build at least sandbox/core and sandbox/core12. I don't know, if there's a better and easier way. regards, Marcus 2011/5/2 Anton Gavazuk antongava...@gmail.com Hi Marcus, could you suggest where can I download latest sandbox binaries/sources? 2011/5/2 Marcus Büttner buettner.mar

PreRenderView Event with post navigation

2010-07-13 Thread Marcus Büttner
Hi, is there a possiblity to trigger PreRenderView event when I navigate via action to another page? small example: I'm on page1.xhtml an there's a button: h:commandButton action=page2/ page2.xhtml includes: f:metadata f:event type=preRenderView/ /f:metadata When I use the button then

Re: PreRenderView Event with post navigation

2010-07-13 Thread Marcus Büttner
is not processed for all requests. As you want to register this listener to the view root it should be a child of f:view (or at least a top level tag if you don't use f:view). regards Michael Am 13.07.2010 14:37, schrieb Marcus Büttner: Hi, is there a possiblity to trigger PreRenderView event when I

Re: PreRenderView Event with post navigation

2010-07-13 Thread Marcus Büttner
didn't look into the details but I think f:metadata is not processed for all requests. As you want to register this listener to the view root it should be a child of f:view (or at least a top level tag if you don't use f:view). regards Michael Am 13.07.2010 14:37, schrieb Marcus

ajax error in SelectOneMenu on change event

2010-07-12 Thread Marcus Büttner
Hi, a small example: h:form id=myForm h:selectOneMenu id=selectMenu value=#{myBean.menuValue} valueChangeListener=#{myBean.menuValueChangedListener} f:selectItem itemValue=true itemLabel=Yes/ f:selectItem itemValue=false itemLabel=No/ f:ajax event=change render=output/

Re: ajax error in SelectOneMenu on change event

2010-07-12 Thread Marcus Büttner
Thanks for fix. Now it works! Marcus Werner Punz schrieb: Am 12.07.10 14:07, schrieb Werner Punz: Am 12.07.10 14:02, schrieb Bruno Aranda: Uhm, just opened a new thread about the same bug. It is an uninitialized variable in the _AjaxUtils class. Jepp as I said I am working on it currently

Re: Problem with nested CDATA sections in scripts in a PPR

2010-07-12 Thread Marcus Büttner
Hi, I've a similar problem with primefaces and myfaces. The standard f:ajax to rerender a component works as espected but p:ajax do not update other primefaces components. I've posted it to the primefaces forum but with mojarra it seems to work. my example: h:form id=myForm

Problem using input elements in a datatable

2010-07-06 Thread Marcus Büttner
Hi, I have a problem with input elements in an UIData (e.g. datatable). Example code: h:dataTable value=#{myBean.valueList} var=val h:column h:outputText value=#{val.description}/ /h:column h:column h:selectBooleanCheckbox id=flag value=#{val.flag}/ /h:column /h:dataTable

Re: Problem using input elements in a datatable

2010-07-06 Thread Marcus Büttner
Ok, I think I found the problem. I created an Issue and attached a patch. https://issues.apache.org/jira/browse/MYFACES-2788 Marcus Marcus Büttner schrieb: Hi, I have a problem with input elements in an UIData (e.g. datatable). Example code: h:dataTable value=#{myBean.valueList} var=val

Re: Problem with Ajax and ViewScope

2010-07-02 Thread Marcus Büttner
In either case with a stock serializable page scoped bean thew example works as expected. I have closed the issue for now, please give me notice if the latest trunk works for you, if not we will investigate a little bit more. Werner Am 29.06.10 12:56, schrieb Marcus Büttner: Thx for your

concurrency problem ajax value change event and page submit

2010-07-02 Thread Marcus Büttner
Hi, I have the following example: h:outputLabel for=val1 value=Value1/ h:inputText id=val1 value=#{myBean.val1} valueChangeListener=#{myBean.val1ChangedListener} f:ajax render=myText event=change / /h:inputText

Problem with Ajax and ViewScope

2010-06-29 Thread Marcus Büttner
Hi, a small example with two input fields, both with valueChangeListener and a f:ajax for rerendering the output field: h:form id=myForm h:outputLabel for=val1 value=Value1/ h:inputText id=val1 value=#{myBean.val1}

Re: Problem with Ajax and ViewScope

2010-06-29 Thread Marcus Büttner
29.06.10 11:05, schrieb Marcus Büttner: Hi, a small example with two input fields, both with valueChangeListener and a f:ajax for rerendering the output field: h:form id=myForm h:outputLabel for=val1 value=Value1/ h:inputText id=val1 value=#{myBean.val1} valueChangeListener

xhtml valid output with DTD strict

2010-06-25 Thread Marcus Büttner
Hi, is there an Issue, to make an DTD strict valid xhtml output with MyFaces2. 1.) There are two hidden input fields in every form (_SUBMIT and javax.faces.ViewState) which are not inside a block element like a div. Is it possible, to embed those fields inside a div? 2.) Form elements are

rendering problem in script section

2010-04-21 Thread Marcus Büttner
Hi, the HtmlResponseWriter from MyFaces does not render the comment end in a script section if other html elements are rendered in this script sections, like primefaces does in DataTable with columnFilter. The DataTable renders e.g. input tags in the javascript part and therefore it uses

Problem with MyFaces debug Utilities for dataTables with ValueExpression wich includes parameters

2010-04-20 Thread Marcus Büttner
Hi, I have a problem with ValueExpression which includes Parameters for DataTables. Example: ui:repeat var=master value=#{myBean.masterList} / h:dataTable vardetail value=#{myBean.getDetailList(master)} / ... /h:dataTable ... /ui:repeat Rendering works fine, but after rendering

restoreState problem in primefaces DataTable with MyFaces

2010-04-13 Thread Marcus Büttner
Hi, I have a problem with primefaces dataTable in combination with MyFaces. The DataTable restoreState method reads from state Object with index 4: Object[] savedState = (Object[]) ((Object[]) state)[4]; This causes an IndexOutOfBoundException. I've seen that Mojarra saves the state of

Re: restoreState problem in primefaces DataTable with MyFaces

2010-04-13 Thread Marcus Büttner
a PrimeFaces bug. If PrimeFaces wants to use the state of the super class, it has to save and restore this state too, otherwise it accesses illegal data. Regards, Jakob 2010/4/13 Marcus Büttner m...@buett.at Hi, I have a problem with primefaces dataTable in combination with MyFaces

Problem with ViewParameter using Ajax calls

2010-04-06 Thread Marcus Büttner
Hi, if I use an Ajax Event in my case a primefaces ComanndButton then ViewParameter are decoded, validated but not encoded. That's a problem when requried is set to true in ViewParameter because validation set submitted value to null and encodeAll should set submitted value to current value.

Problem with BeanValidation in myfaces 2.0

2010-03-22 Thread Marcus Büttner
Hi, I have a problem with BeanValidation in myfaces 2.0. The method getUELValueReference in _BeanValidatorUELUtils calls the getValueReference methode from the given ValueExpression. In el-api 2.2 this method always returns null and e.g. in TagValueExpression in myfaces the method is not

Re: f:event throwing ClassNotFoundException for type

2010-03-16 Thread Marcus Büttner
Hi I think you must use type=javax.faces.event.PreRenderViewEvent regards, Marcus Bruno Aranda schrieb: Hi, I am testing a webapp with the latest myfaces snapshot, and the f:event tag is throwing a ClassNotFoundException because it is not able to find the type preRenderView... f:event

Re: f:event throwing ClassNotFoundException for type

2010-03-16 Thread Marcus Büttner
Hi, but if you will register the name you have to take the name property instead of type in f:event. The type property requires a class name. Isn't? regards, Marcus Leonardo Uribe schrieb: Hi It seems we don't have it on org.apache.myfaces.config.NamedEventManager, so f:event is unable to

Re: [myfaces][tomahawk]

2010-03-14 Thread Marcus Büttner
Hi, t:dataTable supports this 2 properties: sortColumn=#{customerSearchBean.sort} sortAscending=#{customerSearchBean.ascending} regards, Marcus Anton Gavazuk schrieb: Hi Guy, I'm using commandSortHeader in such manner tm:commandSortHeader columnName=NAME

outcome faces-redirect cuts query parameter

2010-03-09 Thread Marcus Büttner
Hello, if I use an action outcome like this: mypage?faces-redirect=trueincludeViewParams=truemyParam=myValue then myParam is not appended to query string in the redirect url. I've seen in NavigationHandlerImpl where the redirect url is built, there's a comment, that the behaviour of adding

Re: Trouble upgrading from 1.1.2 to 1.1.7

2010-03-09 Thread Marcus Büttner
Hi, maybe I don't understand your problem. But could you add the title in this way? items.add(new SelectItem(, Some title)); if the user selects the title you get a null value I think. So you do not need the converter. (except tomcat from version 6.0.18 without the zero flag) lg Marcus

Don't override previous value of viewParam if the parameter is absent

2010-03-08 Thread Marcus Büttner
Hello, I have a question to the behaviour of UIViewParameter. At the moment the submitted value of a viewParam is overriden if this paremeter is absent in RequestParameterMap. This behaviour causes some problems e.g. if the view metadata contains a required view parameter and you have a an

Don't override previous value of viewParam if the parameter is absent

2010-03-08 Thread Marcus Büttner
Hello, I have a question to the behaviour of UIViewParameter. At the moment the submitted value of a viewParam is overriden if this paremeter is absent in RequestParameterMap. This behaviour causes some problems e.g. if the view metadata contains a required view parameter and you have a an