Re: [Trinidad] rendering pre-formatted html text

2008-03-07 Thread Laurie Harper
Renzo Tomaselli wrote: Hi, I wonder if any component in Trinidad is suitable for rendering a pre-formatted chunk of html text. Assume I allow to edit html through TinyMCE or alike, then I save the resulting html text. Whenever I want to render it in readonly mode, I need to include it as it is

Re: A question about integration of JSF and Spring

2008-02-04 Thread Laurie Harper
See also Spring's own documentation: http://static.springframework.org/spring/docs/2.5.x/reference/webintegration.html#jsf and, linked from there: http://jsf-spring.sourceforge.net/ or just try:

Re: Trinidad table paging

2007-07-13 Thread Laurie Harper
Francisco Passos wrote: Great to know you've got it working. I'm now using the process scope feature of Trinidad and it's works fine but it means that I will have to clear the process scope context manually at the appropriate time within the application to avoid high memory consumption on

Component nesting error with 1.0.1 from trunk

2007-06-13 Thread Laurie Harper
I just upgraded an application from a pre-release build of 1.0-incubating to a snapshot of 1.0.1 build from trunk a couple of days ago, and (after making a few changes to my templates to accommodate component name changes and such) am getting the following errors in my logs. Can anyone offer

Re: [Trinidad] plugins build broken?

2007-05-31 Thread Laurie Harper
I just tried upgrading to the latest Maven and have the same error. For now, I've hacked my local poms to require 1.0.1-incubating-SNAPSHOT of this plugin as a work-around. I'll repost the build error to the dev list for further attention. L. Laurie Harper wrote: I just tried checking out

[Trinidad] plugins build broken?

2007-05-30 Thread Laurie Harper
I just tried checking out the current trunk from its new home and found I can't build it :-( I get a failure building the plugins, which then leads to a failure to build the 'trinidad' module. The failure is in the build for the Apache Trinidad Maven XRTS Plugin and looks like either an issue

NavigationHandler registration

2006-08-23 Thread Laurie Harper
I have a requirement to register a custom NavigationHandler implementation at the bottom of the delegation stack, rather than at the top as happens when registering through WEB-INF/faces-config.xml. Basically, I need to make sure that delegating navigation handlers, such as Shale's

creating 'empty' select items

2006-08-11 Thread Laurie Harper
How do I create an 'empty' SelectItem? I'd like to present a selectOneChoice which allows the target model value to be set to 'null'. But I can't create a 'null' SelectItem: SelectItems[] items = new SelectItems[] { new SelectItem(null, (none)), new SelectItem(1, one), ... };

Re: creating 'empty' select items

2006-08-11 Thread Laurie Harper
a bunch of converters just to allow this :-( Unfortunately, it sounds like the only way to do that may be to write a custom component, which seems a bit crazy... I'll have a look at whether there's support for this in Tomahawk or Trinidad first, though. L. On 8/12/06, Laurie Harper [EMAIL

Re: configuring ViewControllerMapper

2006-04-05 Thread Laurie Harper
Matthias Wessendorf wrote: Looks like a Shale /Struts/ related question. Yes, any further questions on this topic should be asked on the struts-users list. Your backing bean needs to be a ViewController, when using Shale. If your page is located like /trees/entry.jsf the bb behind needs to

Re: [OT]Problem with accessing form Element using javaScript

2006-03-31 Thread Laurie Harper
Legolas Woodland wrote: Hi thank you for reading my post. I have this problem in my web application : generated html which i view in my browser has this : [code] span id=form1:staticText8 style=border-width: 1px; border-style: solid; border-color: rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0) rgb(0,

Re: DEFAULT_SUFFIX question again

2006-03-18 Thread Laurie Harper
[EMAIL PROTECTED] wrote: so it turns out I can't use *.jsf as the file extension if I am already using for the filter stuff to go to Faces Servlet. What is bizarre though is when I start using *.faces as my filter and *.jsf as my file extension, MyFaces sends back jsp:root and stuff to the

Re: Yet another calendar (also works in Java Studio Creator)

2006-03-15 Thread Laurie Harper
I should probably point out that now Dojo is in MyFaces (albeit in sandbox) there's YYAC (yet yet another calendar :-); Dojo has a 'date picker' widget. It's very pretty, but less functional than Edwin's looks to be - for example, I don't think it's internationalized at all. Just thought I'd

Re: Compile error , dependency on struts tiles

2006-03-15 Thread Laurie Harper
The dependency would be to support the Tomahawk Tiles support I expect. It ought to marked optional, but would still be needed to compile. The problem may be due to a recent move of the Tiles artifacts in the ASF Maven repository. I know Tiles now lives under a different group ID. The old

Re: (Validation) required=true should change my css style of inputbox e.g. background:red

2006-03-15 Thread Laurie Harper
Yep, that's the simplest solution. If you don't want to emit the style/styleClass value from a backing bean you can also use a variant such as h:inputText ... styleClass=#{mybean.required ? 'required' : ''}/ Regarding your concern about doing this in a data table, you shouldn't have any

Re: return url from action method, OR other option....

2006-03-03 Thread Laurie Harper
Mario Ivankovits wrote: Hi Dean! but, unfortunately, I have to query another service for the URL to really redirect to!!! This means, I can't put the URL in the faces-config.xml file. Is there any way to do any of these options(or otherslist is not exhaustive probably) I am not

Re: Shale Clay vs. Facelets templating

2006-02-22 Thread Laurie Harper
Yee CN wrote: I am in the middle of migrating to facelets and at the same time planning for Shale. It seems to me that Shale Clay and Facelets templating overlaps to a large degree. Is there any guideline on whether the two should/can coexist and which one should be use for any particular

Re: [JSF] Tiles and Reusable Template

2006-02-22 Thread Laurie Harper
Garner, Shawn wrote: I tried using tiles with JSF and found it does not work very well. You end up having to define every page in the tiles.xml file that you want to use the template for. Are there any other approaches to creating a reusable template that uses multiple jsp pages? Seems like I

Re: Dealing with exceptions in getters

2006-02-22 Thread Laurie Harper
Michel Goldstein wrote: Hi, I have a very basic use case in which I need to access an external service on a getter. However, this access might fail and cause an exception. When the exception happens, I would like to redirect the user to an error page that would explain that the service is

Re: question for outputLink/commandLink

2006-02-22 Thread Laurie Harper
Yasushi Okubo wrote: Hi, experts I would like to create a simple text link that kicks off javascript by onmouseover, but avoid to do submit() or go to another webpage, and I also need to show the data stored in my backing bean. The Html line could be like the following. I played with both

Re: ADF Faces oracle skin

2006-02-20 Thread Laurie Harper
See the skinning guide: http://www.oracle.com/technology/products/jdev/101/howtos/adfskins/index.html L. Yogesh Chaudhari wrote: Hi Jonas, I am using ADF faces since last couple of months, I liked the Oracle skin, I am using this theme for our Intranet application. I just want to change the

Re: t:div and validation saving

2006-02-20 Thread Laurie Harper
Or ditch JSPs altogether and switch to Facelets or Shale Clay; much nicer ;-) L. Volker Weber wrote: You need to enclose all plain html in verbatim, but don't put jsf in verbatim. try somthing like this: t:div rendered=#{portalbean.useCase eq 'submitNew'} f:verbatim tr

Re: ADF Faces oracle skin

2006-02-20 Thread Laurie Harper
not want to create new theme, I just want to change font for Oracle theme. But I guess I have to use themes as it or write my own. Thanks, Yogesh On 2/20/06, Laurie Harper [EMAIL PROTECTED] wrote: See the skinning guide: http://www.oracle.com/technology/products/jdev/101/howtos/adfskins/index.html L

Re: Adding Image Icons to Drop Down Lists

2006-02-18 Thread Laurie Harper
Why bother? Just do f:selectItem ... style=background-image: url(/images/icons/someIcon.gif);/ L. Andrew Robinson wrote: You could build your own custom renderer to do this. On 2/17/06, Mike Duffy [EMAIL PROTECTED] wrote: There is a cool technique to add image icons to drop-down lists:

Re: Tomahawk 'extensions' filter: alternatives?

2006-02-17 Thread Laurie Harper
Craig McClanahan wrote: This part of the problem, at least, is pretty easy to deal with :-). Call FacesContext.setResponseWriter() -- perhaps after calling getResponseWriter() to save the original one, if any -- in a before render response phase listener, and do the inject-and-copy trick in the

Re: commandLink encode/decode behaviour

2006-02-17 Thread Laurie Harper
, which has always been _link_hidden_ . Dennis Byrne -Original Message- From: Laurie Harper [mailto:[EMAIL PROTECTED] Sent: Thursday, February 16, 2006 04:38 PM To: users@myfaces.apache.org Subject: commandLink encode/decode behaviour From the reference documentation

Re: Tiles and javascript code generated after html content

2006-02-17 Thread Laurie Harper
Costa Basil wrote: Hi: I am using tiles and I noticed that the final html content contains this piece of javascript code at the end after the /html tag. Is there a way to fix this? Things seem to work tough in IE, however, it kind of worries me. Thanks form id=linkDummyForm

Re: Tomahawk 'extensions' filter: alternatives?

2006-02-17 Thread Laurie Harper
Werner Punz wrote: Laurie Harper schrieb: I have a need for similar functionality to the Tomahawk Extensions filter, and have been thinking about ways to achieve it without requiring user config. I was hoping I could find a standard JSF hook that I could plug into through a faces-config entry

Re: Tomahawk 'extensions' filter: alternatives?

2006-02-17 Thread Laurie Harper
Craig McClanahan wrote: Interesting. I was under the impression that Weblets did not and would not support the 'add script elements to the document head' part of the equation. I'll have to have another look at it. I think that is true for weblets, and it is definitely true for Shale Remoting.

Re: Tomahawk 'extensions' filter: alternatives?

2006-02-17 Thread Laurie Harper
Craig McClanahan wrote: On 2/17/06, Laurie Harper [EMAIL PROTECTED] wrote: Craig McClanahan wrote: Interesting. I was under the impression that Weblets did not and would not support the 'add script elements to the document head' part of the equation. I'll have to have another look at it. I

Re: ADF Faces processScope problem

2006-02-16 Thread Laurie Harper
James Moores wrote: Hi, I know that it's probably a bit early to be looking for ADF Faces help here in light of the fact that it's only just joined MyFaces, but I'm getting no joy at all on the Oracle forums and people on this list have been so helpful that I thought it was worth a try: I use

Tomahawk 'extensions' filter: alternatives?

2006-02-16 Thread Laurie Harper
I have a need for similar functionality to the Tomahawk Extensions filter, and have been thinking about ways to achieve it without requiring user config. I was hoping I could find a standard JSF hook that I could plug into through a faces-config entry but haven't come up with anything viable

commandLink encode/decode behaviour

2006-02-16 Thread Laurie Harper
From the reference documentation for the commandLink component: Both the encode and decode behavior require the ability to get the id/name for a hidden field whose value is set by the JavaScript form submit. This name must be constructed as follows: * Get the clientId for

Re: Tomahawk 'extensions' filter: alternatives?

2006-02-16 Thread Laurie Harper
Craig McClanahan wrote: On 2/16/06, Cagatay Civici [EMAIL PROTECTED] wrote: Hi Laurie, It seems a phaselistener is what you are looking for, it is pluggable and does not require any user configuration. One thing you can do in a filter that you cannot in a phase listener is wrap the response

Re: Shale Dialog Manager vs. t:saveState

2006-02-11 Thread Laurie Harper
CONNER, BRENDAN (SBCSI) wrote: After having done several native MyFaces application implementations, I'm just starting to do initial research into Shale. The motivation to do this is that, from my understanding, Shale offers a framework allowing relatively painless debugging of JSF actions. I

Re: how to declare mvn dependencies on myfaces and javax.faces?

2006-02-11 Thread Laurie Harper
Dave Brondsema wrote: Now that myfaces is using maven to build, what is the proper way for my project to declare its dependencies on JSF? I want to only declare my dependency on JSF, not on MyFaces in particular. For example: dependency

Re: Why ViewRoot.getComponent(clientId) return null?

2006-02-11 Thread Laurie Harper
Dave wrote: In a PhaseListener, first get all the clientId(s) with queued messages, then try to find the components. But ViewRoot.findComponent(clientId) return null. public void beforePhase(PhaseEvent event) { FacesContext context = event.getFacesContext(); UIViewRoot root =

Re: formatted values in param

2006-02-09 Thread Laurie Harper
Or use c:set to store it into a bean. Andrew Robinson wrote: If you are using facelets, you could use an EL function to format the value On 2/9/06, Peter Maas [EMAIL PROTECTED] wrote: Hi all, I wondered how to store formatted values in a parameter. Say I would like to set a formatted date as

Re: myfaces Oracle ADF (or other component libraries)

2006-02-05 Thread Laurie Harper
Tom Butler wrote: Can I use Oracle ADF components together within a MyFaces application? Same question for other component libraries? Or, are these mutually exclusive (use a different front controller)? You can use ADF Faces together with MyFaces and/or the Tomahawk components. Component

Re: How I can read managed property value from faces-config file in class constructor?

2006-02-04 Thread Laurie Harper
Yogesh Chaudhari wrote: Hi, I would like to read show managed property value in InvoiceBean class constructor so I can populate different resultset in invoices arraylist to display on page. Thanks, Yogesh public class InvoiceBean { private String show; ArrayList invoices;

Re: 'Simulating' commandLink from Javascript

2006-02-02 Thread Laurie Harper
Volker Weber wrote: Hi Laurie, Laurie Harper wrote: Thanks for the response, but that's not what I'm trying to do. I don't need to locate and invoke an existing command link; I don't have a command link to invoke. I need to achieve the same effect as clicking a command link would give

'Simulating' commandLink from Javascript

2006-02-01 Thread Laurie Harper
Hi, I need to do the equivalent of clicking a commandLink in Javascript; in other words, I need to write an onClick handler that does the same thing as clicking on a commandLink would. Is there a standard way to do that? I'm not sure if the JSF spec includes any specifics on client-side APIs.

Re: 'Simulating' commandLink from Javascript

2006-02-01 Thread Laurie Harper
Ryan Wynn wrote: On 2/1/06, Laurie Harper [EMAIL PROTECTED] wrote: Hi, I need to do the equivalent of clicking a commandLink in Javascript; in other words, I need to write an onClick handler that does the same thing as clicking on a commandLink would. Is there a standard way to do that? I'm

Re: Any way to disable/sidestep converters/validators while processing a ActionListener event?

2006-02-01 Thread Laurie Harper
Senior Consultants Inc. wrote: Hello: We would like to be able to handle the ActionListener event without converters and validators (associated with fields on the form) generating error messages. When the form is submitted, we do want the field converters and validators to generate appropriate

Re: AW: How to use the HtmlTag component when programmatically building the UI?

2006-02-01 Thread Laurie Harper
If you're building the view programmatically, why can't you just use ResponseWriter directly? writer.startElement(h1); writer.writeText(header 1); writer.startElement(h2); writer.writeText(nested header 2); writer.endElement(h2); writer.endElement(h1); L. Matthias Kahlau wrote:

Re: Page Refresh Problem

2006-02-01 Thread Laurie Harper
Ali Raza wrote: Greetings, Is there any way to determine whether a page has been refresehed ? Is there some object in the request Map or something to indicate that the page has been refreshed from the client instead of actual postback from some submit button ? My problem is that when the page

Re: Page Refresh Problem

2006-02-01 Thread Laurie Harper
. L. Ali Raza wrote: hey Laurie, I browsed the shale package details etc and all the functionality was either devlopoing or evolving in terms of stability ratings. are there any stable alternatives ? Thanx ALI On 2/2/06, Laurie Harper [EMAIL PROTECTED] wrote: Ali Raza wrote: Greetings

Re: Problems Upgrading to Nightly

2006-01-29 Thread Laurie Harper
Correct. myfaces-commons contains code common to myfaces and tomahawk, not copies of the commons-* packages. L. James Reynolds wrote: I tried it a few ways. I'm not sure what's all included in myfaces-commons-1.1.2-SNAPSHOT.jar so I tried it with and without all my other commons-files. I

Re: Oracle Donation (Again)

2006-01-25 Thread Laurie Harper
Martin Marinschek wrote: It is a snapshot of the ADF-faces code, so in this sense, yes, it is ready for production integration. That's a bold statement, given that the code that's been made available doesn't correspond to a released product -- the closest thing to a release was the Early

Re: How to override the MyFaces 1.1.1 taglib listener registration?

2006-01-16 Thread Laurie Harper
Of Laurie Harper Sent: Thursday, January 12, 2006 10:52 PM To: users@myfaces.apache.org Subject: Re: How to override the MyFaces 1.1.1 taglib listener registration? David, I have a solution for this based on subclassing FaceletsViewHandler; the trick is to map the view ID to a view, load the view

Re: MyFaces + Shale + Facelets

2006-01-12 Thread Laurie Harper
Gary VanMatre wrote: From: Julián García [EMAIL PROTECTED] Hi, I am using Hibernate + Spring + Myfaces. It's been working but I think that I am writing a LOT of code in the view layer. I have a small custom validation framework of my own, and my own init mechanisms in my beans. I use

Re: How to override the MyFaces 1.1.1 taglib listener registration?

2006-01-12 Thread Laurie Harper
David, I have a solution for this based on subclassing FaceletsViewHandler; the trick is to map the view ID to a view, load the view to create the component tree, but retain the view ID. It's a little tricky -- and can't be done in a way that's portable, so if you're not using Facelets my

Re: NavigationHandler API faces.config

2006-01-09 Thread Laurie Harper
Dave wrote: Is there any way to access faces.config? I need to know the to-view-id(JSP page) given from-view-id and from-outcome. The NavigationHanlder has only one method handle(..), Thanks. Dave Unfortunately not, short of parsing faces-config yourself and re-implementing the algorithm

Re: Something like forceId for regular components?

2006-01-07 Thread Laurie Harper
Martin, have you tried changing your selector to #formId\:namingContainerId\:myComponentId i.e. escaping the colons? Martin Marinschek wrote: There is one very, very valid reason for forceId I keep reiterating over and over (me not being a friend of forceId in the firstplace, but very

Re: Managing List properties: MyFaces vs. RI

2006-01-07 Thread Laurie Harper
this one. Sorry. -Original Message- From: Laurie Harper [mailto:[EMAIL PROTECTED] Sent: Friday, January 6, 2006 02:33 PM To: users@myfaces.apache.org Subject: Re: Managing List properties: MyFaces vs. RI Dennis Byrne wrote: Can you please post either of these stack traces? Sure

Re: Managing List properties: MyFaces vs. RI

2006-01-06 Thread Laurie Harper
Dennis Byrne wrote: Can you please post either of these stack traces? Sure; this is the MyFaces stack trace. I'll post the one from the RI in a separate message. javax.faces.el.PropertyNotFoundException: /templates/mainLayout.xhtml @65,104 value=#{menuModel.model}: Bean:

Re: Managing List properties: MyFaces vs. RI

2006-01-06 Thread Laurie Harper
Dennis Byrne wrote: Can you please post either of these stack traces? And here's the one from the RI: ERROR [http-8080-Processor25] com.sun.faces.application.ApplicationImpl - Managedbean menuTreeModel could not be created Can't instantiate class: 'instance'. javax.faces.FacesException:

Re: [Studio Creator]How to use 3rd party taglib in jsf pages

2006-01-05 Thread Laurie Harper
Legolas Woodland wrote: Hi Thank you for reading my post. Can some one please help me to add a taglib to my jsf page ? Im using Creator 2 EA 2 , I add all jar files to its build path and also to web-inf/lib now when i add the taglib definition to a page it say : The markup in the document

model update failing, I can't see why

2006-01-05 Thread Laurie Harper
I have this really weird problem I can't explain. I'm hoping someone can give me some insight. The problem is that my backing bean isn't being updated properly during the update model phase, *unless* I include a hidden input. With the source listed below it works fine, but if I remove the

Re: model update failing, I can't see why

2006-01-05 Thread Laurie Harper
parameter in the view ID, which is where I intend to end up to support bookmarking. L. -Original Message- From: Laurie Harper [mailto:[EMAIL PROTECTED] Sent: Thursday, January 5, 2006 04:01 PM To: users@myfaces.apache.org Subject: model update failing, I can't see why I have

Re: model update failing, I can't see why

2006-01-05 Thread Laurie Harper
Dennis Byrne wrote: Er, a couple of times :-) Yes, it makes sense; either getDescription() will be called to render the outputText (view) or it will be called to render the inputText (edit). And because (without the hidden field) renderMode is effectively not preserved through the whole 'edit

Re: Something like forceId for regular components?

2006-01-05 Thread Laurie Harper
Marti, Adrian (Adrian) wrote: Hello all, First post, hopefully not too common a question. Working on a project with a lot of preexisting javascript functions where the id's of components need to be exactly what is expected. JSF seems to want to prefix all of my component

Custom NavigationHandler

2006-01-05 Thread Laurie Harper
I was just looking at implementing a custom navigation handler. I need to basically replace the standard implementation with my own to extend the semantics. I thought I'd start with the MyFaces implementation and just tweak it to do what I need. But NavigationHandlerImpl depends on a bunch of

Managing List properties: MyFaces vs. RI

2006-01-05 Thread Laurie Harper
I seem to have stumbled into a mini-constellation of inter-related and conflicting bugs between MyFaces (1.1.1) and the RI (1.1_01) around configuring managed List properties. Perhaps someone can help me figure out what the correct behaviour(s) should be so I can identify which are bugs in

Re: model update failing, I can't see why

2006-01-05 Thread Laurie Harper
Dennis Byrne wrote: So, in cases where I need to output something, I know I'll have it there. Isn't what you're talking about only an issue if I go from a view with an input component to one that expects to display the input value, rather than validation returning to the same view that has the

Re: Custom NavigationHandler

2006-01-05 Thread Laurie Harper
Craig McClanahan wrote: On 1/5/06, Laurie Harper [EMAIL PROTECTED] wrote: I was just looking at implementing a custom navigation handler. I need to basically replace the standard implementation with my own to extend the semantics. I thought I'd start with the MyFaces implementation and just

Re: [Studio Creator] Re: Can we use several package of jsf components together ?

2005-12-31 Thread Laurie Harper
Craig McClanahan wrote: On 12/31/05, Matthias Wessendorf [EMAIL PROTECTED] wrote: Hi Legolas, I haven't used Studio Creator w/ MyFaces' tomahawk (or sandbox). But you should be able (as Alexandre pointed out) to *use* MyFaces stuff in Creator. Currently there is no *design time* support for

Re: Good JSF Books

2005-12-31 Thread Laurie Harper
Greg Reddin wrote: Hi, I'm looking for some good JSF books. However, I want more than just This is how it works. I'd really like to find books that talk about Here are some good patterns and here are some antipatterns. I've looked at Core JSF and it looks pretty good, but seems to contain

Re: JSF support East Asian characters ?

2005-12-31 Thread Laurie Harper
Does the browser(IE) or inputText do the encoding of characters? If the inputText component has an initial value, it will be encoded server-side using the view's output encoding. When you submit the form, the browser will encode the current value of the inputText using whatever encoding it

Re: jsf analogy to struts action

2005-12-20 Thread Laurie Harper
But what about if you need to do this for the initial page? (i.e. you don't have a page to put a command link on...) I want this to be able to have bookmarkable URLs in my app, where different URLs may map to the same view (JSP) -- for example, URLs /app/users/tom and /app/users/jim would

Re: jsf analogy to struts action

2005-12-20 Thread Laurie Harper
Oops, spoke too soon... the trouble with the servlet approach is that to-view-id in faces-config isn't a context relative path, it's relative to the Faces servlet... So I guess it's time to dig into custom nav handlers. L. Laurie Harper wrote: But what about if you need to do