Re: sitemesh and jsf

2007-02-27 Thread Ricardo Tercero Lozano
As far as I know you cannot use JSF in Sitemesh decorators. Ricardo. On 2/26/07, Garner Shawn <[EMAIL PROTECTED]> wrote: I'm trying to use sitmesh with JSF and am getting the following exception: This is my template decorator page and has a f:view page. Is there something I have to do with th

Re: Navigation issue with acegi/jsf

2007-02-22 Thread Ricardo Tercero Lozano
Hi, I faced this problem time ago. From my knowledge acegi is not compatible (or it is not prepared to work to) with JSF navigation system. Acegi works with filters that do the security access job (using FilterToBeanProxy to delegate to a Spring bean). I created a custom NavigationHandler to s

Re: Upgrading from MyFaces 1.1.4 to 1.1.5

2007-02-22 Thread Ricardo Tercero Lozano
Hi Matt, I got aware of the same problem time ago, in my tests, mainly because my project start point was appfuse ;-). What I realized is in Myfaces latest version the _link_hidden_ parameter now is named _idcl Ricardo. On 2/22/07, mraible <[EMAIL PROTECTED]> wrote: I recently tried up

Re: Programmatic forward in action,

2007-02-09 Thread Ricardo Tercero Lozano
Try AjaxAnywhere (http://ajaxanywhere.sourceforge.net/). Although it's an Ajax solution, the principal advantage is than this component hadly adds complexity to your page. I've used AjaxAnywhere for a similar functionality with success. Ricardo. On 2/9/07, Mikael Andersson <[EMAIL PROTECTED]

Re: MyFaces and multithreading problem

2006-10-26 Thread Ricardo Tercero Lozano
By definition, one request is only processed by one execution thread. I don't thins myfaces starts a new thread in order to do things (but in fact, I cannot confirm it). What I've found some times is a double submit issue (of course nothing to do with myfaces). Check that you are not submit the sam

Re: New component

2006-10-18 Thread Ricardo Tercero Lozano
Why not put a 'rowspan' attribute too?On 10/17/06, Jeff Bischoff <[EMAIL PROTECTED]> wrote: L Frohman wrote:> I have already added a colspan attribute to the> and modified to implement it. >Ah I see that now - the TLD doc describes this colspan attribute.I think it is hard in many cases for users

Re: Configurable views via XML File

2006-09-25 Thread Ricardo Tercero Lozano
ndering with an XML configuration, you have to code it. Ricardo.On 9/25/06, Mosimann Matthias <[EMAIL PROTECTED]> wrote: Hi Ricardo   So it might be in the next specs?   regards Matthias Von: Ricardo Tercero Lozano [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 25. September 2

Re: Configurable views via XML File

2006-09-25 Thread Ricardo Tercero Lozano
You can control attribute rendering (JSF tags) through 'rendered' property. The xml configuration has to be worked on.Ricardo.On 9/25/06, Mosimann Matthias <[EMAIL PROTECTED]> wrote: Hy Everyone     I experimented a little bit with JSF with Kito Mann's book "Java Server Faces in Action". No

Re: JSF proxy component

2006-09-07 Thread Ricardo Tercero Lozano
You can use JSTL tags, for example. Or you can use Sitemesh with inline content decoration. But that content will not be binded to JSF.Ricardo.On 9/7/06, Martin Marinschek <[EMAIL PROTECTED]> wrote: No, there is nothing like a proxy component so far. Might make a niceaddition, though!regards,Mart

Re: Direct usage of myfaces out of a Java program and save/restoreState issues

2006-09-05 Thread Ricardo Tercero Lozano
The only time frame where views are stored is between a RENDER_RESPONSE end (the view is serialized) and the RESTORE_VIEW of next request. At the end of that request there is a new RENDER_RESPONSE phase and a new view is created, so you are *almost* right. Views are stored but not used at all excep

Re: Direct usage of myfaces out of a Java program and save/restoreState issues

2006-09-05 Thread Ricardo Tercero Lozano
Forgot to say than If you really want to complete restore a previous rendered view you must extend the NavigationHander functionality or use a 'dialog' functionality like Shale dialogs ( http://shale.apache.org/features-dialog-manager.html) or sandbox conversation components.Ricardo.On 9/5/06, Ulri

Re: Direct usage of myfaces out of a Java program and save/restoreState issues

2006-09-05 Thread Ricardo Tercero Lozano
I think you have a concept mistake. When you come back from one page to another, a complete faces cycle is executed. Thus, the RENDER_VIEW IS executed and a new view is created. You can think the previous stored page is restored, but that's not true. If you use x:savestate you can store from a sing

Re: Problem with Spanish characters in myfaces simple examples

2006-08-24 Thread Ricardo Tercero Lozano
Not only encoding of http request has to be in UTF-8, but .properties files too. If resource files aren't in UTF-8 format you have to replace í for \u00ED.país --> pa\u00EDs On 8/14/06, Jorge Vásquez <[EMAIL PROTECTED]> wrote: I don´t know if I didn´t made myself clear but first of all the encoding

Re: [newbie] MyFaces or Barracuda ??

2006-07-13 Thread Ricardo Tercero Lozano
AppFuse (https://appfuse.dev.java.net/) is a very good project start point with many technologies merged together.Ricardo. On 7/13/06, Jesse Alexander (KSFD 121) <[EMAIL PROTECTED]> wrote: As others have said, maybe you should consider more of a stack than justan appserver and the UI-frameworkSpike

Re: How to call JSF method binding expressions from a java script.

2006-07-12 Thread Ricardo Tercero Lozano
AppFuse (v. 1.8.2) does this in table selections with displaytag. Use the _link_hidden_:
        function doAction () {
            var f = document.forms['myForm'];
            f.elements['myForm:_link_hidden_'].value='myLink';
            f.submit();
        }
    Ricardo.On 7/

Re: Acegi filter wrapped request not seen by visibleOnUserRole...!?

2006-06-19 Thread Ricardo Tercero Lozano
Ensure you have a remoteUserFilter in your filter chain proxy (spring configuration for acegi). As an example:                    CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON     PATTERN_TYPE_APACHE_ANT/**/*.html*=channelProcessingFilter,httpSessionContextIntegrati

Re: Autorefreshing a jsf page or parts of it

2006-06-16 Thread Ricardo Tercero Lozano
I've used AjaxAnywhere for refreshing parts of a page. The sample app has a polling example.On 6/16/06, Remo Liechti < [EMAIL PROTECTED]> wrote:HiI need to auto refresh a jsf site every n seconds. There is a meta command for this, but since we are using spring webflow, those meta tags do not work.

Re: GetScrolling

2006-06-15 Thread Ricardo Tercero Lozano
getScrolling is inserted in html code by extensions filter. Even more, the content handled by this filter needs a tag for the _javascript_ to be inserted.Ricardo.PS: I've not tested tomahawk 1.1.3 yet, but getScrolling caused me troubles with 1.1.2.On 6/15/06, Enrique Medina <[EMAIL PROTECTED] >

Re: Sandbox - how to update subForms?

2006-06-15 Thread Ricardo Tercero Lozano
http://wiki.apache.org/myfaces/ClearInputComponents?highlight=%28reset%29On 6/14/06, Jeff Bischoff <[EMAIL PROTECTED]> wrote: Let me clarify slightly:Output components within the subForm, such as do displaythe new model values correctly.Input components (e.g. h:inputText, h:selectOneMenu) do not

Re: MYFACES-1259 not resolved? (javascript error: getScrolling is not defined)

2006-05-19 Thread Ricardo Tercero Lozano
tension filter.On 5/18/06, Ricardo Tercero Lozano < [EMAIL PROTECTED]> wrote:>> Hello,>> today I tested my application against myfaces-core-1.1.3 and tomahawk-1.1.2> and I found an issue related to HtmlCommandLink. Every time I click on a > link, a _javascript_ error is generated:

Re: MYFACES-1259 not resolved? (javascript error: getScrolling is not defined)

2006-05-19 Thread Ricardo Tercero Lozano
commandLink.any ideas?R.On 5/18/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote: Are you getting errors about the extension filter not being properly configured?The getScrolling function is added to your page html by the extension filter.On 5/18/06, Ricardo Tercero Lozano < [EMAIL

MYFACES-1259 not resolved? (javascript error: getScrolling is not defined)

2006-05-18 Thread Ricardo Tercero Lozano
Hello,today I tested my application against myfaces-core-1.1.3 and tomahawk-1.1.2 and I found an issue related to HtmlCommandLink. Every time I click on a link, a _javascript_ error is generated: getScrolling is not defined. I'm running tomcat 5.5.15. I've setted extensions filter as shown in [MYFA

Re: Does inputSuggestAjax works with STATE_SAVING_METHOD=server

2006-04-03 Thread Ricardo Tercero Lozano
I've tested this component in sandbox.jar for myfaces 1.1.1 and it only works with client save state method. Otherwise navigator complaints about a non existent jsf_tree_64 variable.Ricardo. On 3/31/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote: On 3/31/06, Murat Hazer <[EMAIL PROTECTED]> wrote:>

Re: design question...filling in bean, posting

2006-03-31 Thread Ricardo Tercero Lozano
You can get a reference to a managed bean defined in faces-config.xml this way:        ValueBinding bind = FacesContext.getCurrentInstance().getApplication()            .createValueBinding("#{myBean}");                 MyBean myBean = (MyBean)bind.getValue(this.facesContext);It can be done too usin

Re: design question...filling in bean, posting

2006-03-30 Thread Ricardo Tercero Lozano
In order to send information from one bean to another you can use the variable resover or the value binding. When the action to navigate from tree.jsp to editFolder.jsp, you can locate the folderBean (if it doesn't exist it'll be created) and set the data you want to send. On 3/30/06, Dean Hiller <

Re: Using valueChangeListener

2006-03-23 Thread Ricardo Tercero Lozano
For components that implements EditableValueHolder (i.e. inputText) there is a 'submittedValue' that if exists is taken over attribute binding on page rendering. I have the same behavior in my application when an edition is cancelled: the bean data is refreshed from database, but page don't take th

Re: disable back button?

2006-03-22 Thread Ricardo Tercero Lozano
In that page says "This feature was added after the MyFaces 1.1.1 release.". So, if myfaces latest official release is 1.1.1, it cannot be used at this moment. Client save is actually coded in base64, what is really unsecure. Ricardo.On 3/22/06, Dennis Byrne <[EMAIL PROTECTED]> wrote: >Also, I am n

Re: Managed bean constructor dependencies (Spring)

2006-03-15 Thread Ricardo Tercero Lozano
Your managed beans must extend AbstractViewController. Another problem could be the view - managed bean matching. It's assumed that a view (jsp page) is controlled only by one managed bean. The problem is than in Faces this relation doesn´t exist and a matching algorithm is needed. By default, the

Re: Managed bean constructor dependencies (Spring)

2006-03-15 Thread Ricardo Tercero Lozano
In fact, shale view controller is a phase listener. The init() method is called after the component tree is restaured. This means it is called after *all* properties are set, both from faces-config.xml dependencies and saveState sets. What you asked for is the Spring "afterPropertiesSet" functional