A related architechture question I sometimes wonder about is:Should the model POJO:s be kept as clean DTO:s or should they have member functions for operations also, andif there are operations, how complex should they be allowed to be before I should break them into
e.g. static calls ina business
Sean Schofield schrieb:
I personally love JBuilder but it is very pricey.
I think you brought up the main point, now that the enterprise stuff
finally again is moving into sane domains pricewise (Thanks to Sun and
MyEclipse) Borland simply cannot afford to charge this money for their
stuff
Hi dear all,
I am using portlet and want to insert a tag s:inputSuggestAjax
into one of my .jsp page. However, it doesnt work due to a _javascript_ error
element.getClassName has no properties in firefox.
I have read the generated html file, even jumped deeply
into the source codes
Hi Tony,
I am not an expert, but have you tried moving the default rule to the
end of the list?
Otherwise you could specify some from-view-id's in your
navigation-case's?
HTH,
Fintan
-Original Message-
From: Tonio Caputo [mailto:[EMAIL PROTECTED]
Sent: 08 February 2006 21:28
To:
Hi Matthias,
just an idea, may work or not, but worth a try imho:
put the HtmlSelectOneRadio component(s) somewhere out of the uidata
(e.g. as child of viewRoot) and set a id, also set a id to all parent
namingcontainers.
in the for attribute of the HtmlRadio components use a absolute id (e.g.
No, you will always get the UINavigationMenuItem.
On 2/8/06, Richard Frazer [EMAIL PROTECTED] wrote:
OK, I used the daily from today and it is returning the value I was looking
for, but not the UINavigationMenuItem like I would expect. It's still
returning the HtmlCommandJSCookMenu.
Should
Hi,
i think this can be solved by adding the parameters as post parameter to
the options, instead of empty.
I will give it a try this afternoon (german time).
Regards,
Volker
Luo. Haihua wrote:
Hi dear all,
I am using portlet and want to insert a tag s:inputSuggestAjax into
one of
Yes you are absolutely right. It only creates a form when it doesnt find a parent form.
Cheers... :)
On 2/8/06, Mike Kienenberger [EMAIL PROTECTED] wrote:
Have you tried explictly creating an enclosing form?Maybe it only creates a form if it doesn't find a parent form.
h:formblah blah
I am quite sure that the extension filter stuff is not the reason for the problem concerning the jsCookMenu and Suns RI. All _javascript_ and CSS stuff is loaded properly.
So, can you please open an issue concerning this?
Thanks Bye,
Daniel
2006/2/8, Mike Kienenberger [EMAIL PROTECTED]:
You put all the view related logic there, ie sorting data, calling
some services to update the data, ... If you use a layered
architecture (well you should usually), the clue here is to think is
this logic local to this page (or more if it is a session bean) ? Is
this logic still make sense if I
Hi Volker,
thanks for ur always warm-hearted reply!:)
Do you mean sth. like this in InputSuggestAjaxRenderer.java?
out.writeText(', {\n +
method: 'post',\n +
...
parameters: 'affectedAjaxComponent= + clientId + ',\n
+
...
It seems that
Hi all,
I am experiencing some problems with the usage of the validator
attribute inside a h:inputText element and would like to know if ther
are known issues. The way I am solving it right now is to use
application level validation, e.g. I call a validate method from one
of my commandButton
Many thanks for your help.
I applied all of your suggestions but i have still same problem: the
entered value in t:inputText is lost. But i got some new ideas!
I replaced the commandlinks with commandbuttons and it works but my
nice buttons are gone!
I don't know what's difference between the
Hi Sven,
can you provide some code to the list?
Btw. the Apply Request Value Phase is populating the UIComponents w/
submitted values. Your backing bean properties are populated during
model update phase.
Regards,
Matthias
On 2/9/06, Haiges, Sven, Vodafone Group RD [EMAIL PROTECTED] wrote:
Hi
I think i know more or less how the sortable-problem with my table can
be explained:
1. edit button of a row is pressed
2. sort method is called (order is now descending)
3. the row is made editable (the wrong one, because the table is
descending)
4. sort method is called again (order is now
Hi-
I have run into a few problems moving
from the struts way of thinking to JSF. I'm hoping that the many
smart people on this list have made that jump. I'm stuck trying to
design the most elegant way to implement a piece of functionality I'll
call Update Document. I would appreciate it if
In our application, a typical model object
is a slightly enhanced DTO containing the obvious primitives, other domain
objects, getters and setters, but also methods that can be fully completed just
by using data on the object itself (e.g. validate object fields, cloning the
object...).
Hi,
I'm currently moving from RI to myfaces1.1 - and I am encountering some
problems with sitemesh. Sitemesh decorates the pages after they were
rendered. It does so by parsing the page and then giving you tags to place
the head and the body. Works like a charm and has the big bonus over
Ah! Of course... I made the error that I expected my backing bean to be
updated... but of course this is happening AFTER my validations. As I
changed the code now, I cannot proved any code snippets now, but as I
said, I move the validation already to an action-method.
Cheers\
Sven
-Original
Hi all,
I wondered how to store formatted values in a parameter. Say I would like to set a formatted date as a message property...
Something like this:
//---//
h:outputFormat value=#{messages['searchresults.lastModified']}
f:param
Adding a message to the context for a clientId is not working. I saw in
the wiki page that the example matches my code. Can somebody give me a
hint what may be wrong?
Jsp:
h:inputText id=refreshminutes binding=#{backingBean.myComponent}
size=5 value=#{backingBean.refreshMinutes} /
h:message
If you are using facelets, you could use an EL function to format the valueOn 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 a message property...
Something like this:
Are you using subviews or tiles perhaps? Before I switched to facelets I saw many problems like this where components fell out of local scope and the message tag could not locate a component due to the view/subview structure of a page.
On 2/9/06, Virtudazo, Dennis (Exchange) [EMAIL PROTECTED]
Hm, This code should work it looks my code except one but I think this should not be the problem but maybe:FacesMessage errMsg = new FacesMessage( FacesMessage.SEVERITY_INFO, shortMsg,
longMsg);I used an other Constructor. Maybe there is a problem with missing Severtiy.best regards Hans
2006/2/9,
Hi,
Arvid, I am trying to reach the same point than you but I am having
problems.
I built and deployed the example demo and it works great but when I try
to insert a sample in my facelet web application (even the simplest
hello world example) I keep getting :
[benevole.info] ERROR
I would check in my example, but there seems to be no facelets artifact
on the default Maven repository. Is CDDL compatible to AL2? Is it
planned to put facelets on Ibiblio? If this is the case we could
temporarily put an artifact on www.atanion.com/maven2.
Regards,
Arvid
Thomas Gaudin
no, I had right constructor, my example just missed the
severity
From: Hans Sowa [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 09, 2006 10:38 AMTo: MyFaces
DiscussionSubject: Re: h:message problem
Hm, This code should work it looks my code except one but I
think this should not be
not using subviews or tiles.
it's not a problem of not being able to locate the
component, because the built-in validator's error message is getting displayed.
but my explicitly added message is not.
From: Andrew Robinson
[mailto:[EMAIL PROTECTED] Sent: Thursday, February 09,
2006 10:29
There is no need for such a complicated approach what you try to achieve
is a state saving and scoping over the database.
MyFaces tomahawk has a x:saveState construct which first restores the
entire object and then sets the altered values.
No id nothing is needed once you have the data (which
It looks like you didn't add the Tobago resources to your WAR. If you
look into the tobago-example-demo WAR, you will see the directory
/tobago, which contains the resources needed by the themes. You will
need to add these to your WAR, too.
Udo is currently working on simplifying this.
Hi,
I've been looking into different ways to partially refresh a JSF page
(actually a Facelets page) to get more responsive components (datagrids,
etc.), and have come up with a few options. Thought I'd see if anyone
on this list had strong opinions on one versus the others. I'm willing
to
Hi Rogers,
The donation includes this functionality. The parts that are available
in the commercial solution (and not in the donation) are RenderKits for
Wireless and Telnet.
Partial Page Rendering should work out of the box :)
Thanks,
Jonas
Rogers Reilly wrote:
Hi,
I've been looking
MyEclipse is a commercial IDE built on Eclipse right? I'm curious to
know a fellow developer's opinion on what some of the improvements
over free Eclipse are ...
Sean
On 2/9/06, Werner Punz [EMAIL PROTECTED] wrote:
Sean Schofield schrieb:
I personally love JBuilder but it is very pricey.
I
Werner Punz wrote:
Sean Schofield schrieb:
I personally love JBuilder but it is very pricey.
I think you brought up the main point, now that the enterprise stuff
finally again is moving into sane domains pricewise (Thanks to Sun and
MyEclipse) Borland simply cannot afford to charge this
Daniel,
It'd be best if you opened the issue since you have the best
understanding of the problem and can provide examples showing the
problem. (You also are the one who's most interested in seeing a
solution).
I don't know anything about jsCookMenu -- I've never used it.
On 2/9/06, Daniel
Hi,
yes this and related changes in myFaces.js was my first idea, but this
did not work right.
I added a additional field to the options.
Seems you have the sources? please try the attached files, it works on
my tomcat, but i can't test on a portlet.
If this works i can commit this into svn.
Thanks Jonas, that's great news. I've got the zip here
http://wiki.apache.org/myfaces/adfproposal and am going to give it a
shot. Is Facelets supported baked into that archive (the one from
wiki.apache/myFaces) somewhere, or do I need a separate jar to get ADF
tags working in .xhtml files?
Hi Conway,
Thanks very much for your help, IT WORKED !!
Two things:
1 - When I copied the example in the e-mail
I thought: What if I put it at the end ?
I told me: No its stupid it has nothing to do
Good lesson: Try all solutions no matter how
Sven,
I am not really sure about what's happening, when throwing a
ValidatorException in Phase 5. Since converters and validators are
invoke two phases earlier.
However, it is possible to add FacesMessage objects during phase 5
(inside of your action method).
Use something like:
Hi,
I was wondering if anyone has any insight to my question below.
I am trying to use jsValueChangeListener to dynamically enable another
selectOneMenu on the same form.
What I'm trying to do : Per the code below, if id=myActionType = 3
then enable the field where id=newMyStatusLabel
The
Hi Volker,
many thanks, it works now. I already tested it with the HtmlSelectOneRadio
components outside of UIData, but I got runtime errors because they hadn't
been found for the related HtmlRadio components. That's why I added them as
children to UIData, what solved the error, but the
Hi,
I'm trying to make my application
implemented and tested with sun
reference implementation run with myfaces-
1.1.1
After some basic problems all seems
to work ok.
There is only a difference:
HtmlSelectOneRadio Style renderer
I'm setting the style of the component
Sun implementations generates a
span tag with style information
surrounding all the input elements
That's what I need, too (and also for HtmlSelectManyCheckbox), but I think
that's only possible when not using spread layout.
Maybe rendering a span element around each input element would be an
hello all,i am currently try to use jscookmenu along with my JSF app which uses tiles.jscookmenu should redirect to a page in which there is another form to be submitted.I followed advices on the list to embed jscookmenu and my other data under the same
form..for example, heres' my base
Have you read up what the spec says about this?
Is there a way to set an item style in the RI?
It seems to me that that would be important in many cases...
regards,
Martin
On 2/9/06, Tonio Caputo [EMAIL PROTECTED] wrote:
Hi,
I'm trying to make my application
implemented and tested with
Andy, when you say ValueBinding and Binding do you mean the
binding attribute or the value attribute?
On 1/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Perhaps I haven't described my problem exactly so that it's
unterstandable...
My problem is the following:
If I add a Binding
On 1/25/06, Nicklas Karlsson [EMAIL PROTECTED] wrote:
Is the internal String - Date convertor supposed to be so forgiving that
it wraps 66.01.2006 (dd.MM.) into 07.03.2006 without
as much as a complaint? I have a custom validator but it only kicks in after
an OK date has been generated.
Martin,
Finally I was able to find the specs
(http://java.sun.com/j2ee/javaserverfaces/1.1/docs/renderkitdocs/index.html)
here is what it says regarding my problem:
Render a table element. If the styleClass is specified, render the
value of the styleClass attribute as the value of the class
I think , who will buy these stuff , All company that has money to by
these product line has their own stuff (IBM ,BEA ,SUN ,MS,ORACLE) , is
there any other company that has enough cash to buy those products ?
how much those products costs ? for example how much should buyer pay to
get Jbuilder
Hi
Yes
thats right.You need to add some more too. So the final one should look
like
filter
filter-nameextensionsFilter/filter-name
filter-classorg.apache.myfaces.component.html.util.ExtensionsFilter/filter-class
/filter
filter-mapping
filter-nameextensionsFilter/filter-name
Not in the moment, but it should, so I've added an issue:
https://issues.apache.org/jira/browse/MYFACES-1107
Regards
Udo
Iryna Stetska schrieb:
I'm using t:tree. I would like to have some visual indicator
(different backgroung, color or style) for the tree node currently
selected (which is
Hello,some time ago there's been a post of somebody struggeling to put jsValueChangeListener to work with radio buttons. Now I have similar problem. I use the snippet:x:selectOneRadio id=locationType layout=spread value=locationProdvided
f:selectItem itemLabel=#{bun.newTask_location_matters}
It takes some high level bookkeeping to determine the real value..
Mvgr,
Martin
Legolas Woodland wrote:
I think , who will buy these stuff , All company that has money to by
these product line has their own stuff (IBM ,BEA ,SUN ,MS,ORACLE) , is
there any other company that has enough cash to
I don't think you're allowed to alternate filter and
filter-mapping sections.
You have to define all of your filter elements, and then all of your
filter-mapping elements.
Note that the order you list the filter-mappings is the other that
they get executed.
I recommend making the myfaces
Hi all,
The refresh has always been a big problem for web app
design.
In my JSF program, I was trying to use ajaxanywhere to
slove that problem. But unfortunately ajaxanywhere does not work quite well with
JSF, especially with tree2 component of myfaces.
So I decided to use the
I put preserveDataModel = true and then click on next page on scroller, I get an error message
java.lang.ClassCastException: javax.faces.model.ListDataModel org.apache.myfaces.component.html.ext.HtmlDataTable.updateModelFromPreservedDataModel(HtmlDataTable.java:254)
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
I like to display a message to user saying "Session Expired" when a session expires. After a session expired, everything in session scope are gone. So my question actually becomes:How to tell the difference between "Expired Session" and new session?Thanks!
Brings words and photos
Dave,
There are multiple ways provided by
the Servlet API which will tell you whether the current session is valid (is not
expired). The HttpServletRequest has a method called
isRequestedSessionIdValid() (http://java.sun.com/j2ee/1.4/docs/api/index.html).
A false return from this method
Have you tried to setup your context-listener in the web.xml directly?
regards,
Martin
On 2/9/06, Adam Brod [EMAIL PROTECTED] wrote:
Hi-
I am running into a problem with Classloading with MyFaces 1.1.1 on Weblogic
9. Weblogic allows you to deploy your webapp in an exploded directory
60 matches
Mail list logo