Re: XHTML Strict

2007-04-16 Thread Rudi Steiner

Hi Mike,

I don't know if removing the name attribute from the form-element is
HTML 4.01 compatible but i think so. This wold be my first proposal.

The second is to wrap every hidden field rendered by the jsf-impl with
a div-Element.

Is this possible. Should be opened Jira-Issues for this to proposals?

best regards,
Rudi

On 4/16/07, Mike Kienenberger <[EMAIL PROTECTED]> wrote:

From the JSF 1.1 spec:
=
8.5 Standard HTML RenderKit
Implementation
To ensure application portability, all JSF implementations are
required to include
support for a RenderKit, and the associated Renderers, that meet the
requirements defined in this section, to generate textual markup that
is compatible
with HTML 4.01.
=

However, if there are changes we can make to MyFaces Core that will
improve xhtml support while still meeting the above requirement, we
can make them.


On 4/16/07, Rudi Steiner <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> making some investigations on XHTML-comfomance fo myFaces (without
> Tomahawk) I found out, that the output of the basic components, like
> ,  and so on render valid XHTML but just
> transitional ( Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>).
>
> The problem is, that our customer requires XHTML-Strict ( html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>).
>
> Running the XHTML-output of a standard form against the validator of
> the W3C. I get some errormessages.
>
> The first one ist, that there is no name-attribute in the defined DTD
> for the form-element, but the -tag renders it:
>
> 
> The second error is, that the hidden fields inserted by the
> JSF-implementation into the form are not enclosed in a div-Element. If
> I but my input-Elements inside the form in a , this elements
> are enclosed in a  and don't produce any errors, but the hidden
> fields inserted by myfaces are rendered after the closing -Tag.
>
> Has anyone an idea? Isn't it required by the JSF-Spec to render
> XHTML-Strict to be a standard conform implementation?
>
>
> Best regards,
> Rudi
>



Re: how link svg file with jsf component

2007-04-16 Thread mathias °ö°

hi,
[ok, continue in english :)]

the problem is its running in firefox but its not running in ie 6 / 7 with
adobe svg viewer 3.0.3 (latest version).
with ie i get back only a grey frame and the browser cant load the svg files
(linked with object and embed tag).

that is the reason for testing the  component.
but i am not sure which attributes of this component i must use for a
separate svg file.
http://../images/map.svg"; cacheable="false" >
that is not running.

best regards
mathias °ö°



Gerald Müllan wrote:
> 
> Hi,
> 
> maybe some path-related problem in order to access the file in your
> web-resource dir?
> 
> cheers,
> 
> Gerald
> 
> On 4/16/07, mathias °ö° <[EMAIL PROTECTED]> wrote:
>>
>> hi david
>>
>> i checked the object tag and tested in a simple html file linked to svg
>> file.
>> and this is working.
>> but the same is not running with the jsf web app.
>> 
>> http://../images/map.svg"; width="500" height="500"
>> type="image/svg+xml">
>> 
>> 
>>
>> which params must adjusted by  component ?
>>
>> best regards
>> mathias °ö°
>>
>> David Delbecq-2 wrote:
>> >
>> > firefow can load svg using  tag, so you should check the the
>> > object tag is correct and the the pointed svg file is at proper
>> location.
>> >
>> > En l'instant précis du 12/04/07 16:10, mathias °ö° s'exprimait en ces
>> > termes:
>> >> i have tested with :
>> >> at browser (ie and firefox) i see only a grey frame. the browser can´t
>> >> load
>> >> the svg image.
>> >> (if i start the svg image from my file browser it will open.)
>> >>
>> >> my next step i try with  component , but im not sure
>> >> which
>> >> attribute i must set.
>> >>
>> >> > >> codetype="image/svg+xml" codebase="test.svg" />
>> >>
>> >> but this code-snapshot does not work.
>> >>
>> >> best regards
>> >>
>> >>
>> >> David Delbecq-2 wrote:
>> >>
>> >>> Indeed, now you say this, am not sure the tomahwak htmlTag component
>> >>> accepts attributes other than the default uioutput ones.
>> >>> maybe something along this?
>> >>> 
>> >>> > >>> width="400" height="300">
>> >>> 
>> >>> 
>> >>>
>> >>>
>> >>> In facelets i would simply make, without verbatim
>> >>>
>> >>> > >>> width="#{someBean.someSvgWidth}" height="#{someBean.someSvgWidth}">
>> >>> 
>> >>>
>> >>> but won't work in JSP. Also the media tag of ajax4jsf is made to
>> ouput
>> >>> 'media' in various tags (object, a, img, iframe), if you can afford
>> an
>> >>> additionnal library...
>> >>>
>> >>>
>> >>> En l'instant précis du 12/04/07 10:40, mathias °ö° s'exprimait en ces
>> >>> termes:
>> >>>
>>  2. use htmTag component
>>  
>>  
>>  
>>  
>>  
>>  
>> 
>>  but is does not work. how i handle htmlTag Attributes?
>> 
>>  best regards
>>  mathias °ö°
>> 
>> 
>>  David Delbecq-2 wrote:
>> 
>> 
>> > graphicImage renders a   tag. Svgs are not supposed to be
>> > included with such tags. It's like trying to use a img tag to show
>> a
>> > flash object.
>> >
>> > See here how to include svg in your page:
>> > http://wiki.svg.org/SVG_and_HTML
>> >
>> > When you have understand this, you can use either the ajx4jsf
>> 'media'
>> > component or use the tomahawk 'htmlTag'  component to render your
>> > object
>> > tag.
>> >
>> > Also don't forget to setup your mimetype in your web.xml for svg
>> > ressources.
>> >
>> > En l'instant précis du 11/04/07 16:14, mathias °ö° s'exprimait en
>> ces
>> > termes:
>> >
>> >
>> >> hi
>> >>
>> >> how link an extern svg-file with jsf component.
>> >> with
>> >> http://www.***/file.svg"; />
>> >> it does not work.
>> >>
>> >>
>> >>
>> >>
>> >
>> >
>> 
>> 
>> >>>
>> >>>
>> >>
>> >>
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/how-link-svg-file-with-jsf-component-tf3559628.html#a10013013
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> http://www.irian.at
> 
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
> 
> Professional Support for Apache MyFaces
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-link-svg-file-with-jsf-component-tf3559628.html#a10029664
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Programatically updating the model

2007-04-16 Thread Simon Kitching
The problems you are having are because you are trying to write a JSF 
component but are trying to do it through the "user api" rather than the 
"component api" of JSF.


If you want to write a picklist component you should really subclass 
UIComponent (or other convenient base). In this case you don't need to 
worry about the select list standard behaviour. You get callbacks like 
"processDecodes", "processValidations" etc that allow you to customise 
the behaviour of your component.


For normal *users* of a select list, ensuring that a submitted value is 
in the set of expected values *is* what is wanted.


Regards,

Simon

monkeyden wrote:

Wouldn't it be simpler to just create SelectItems from the submitted values,
in the VCL, and set the backing bean property so they match?  Who needs a
phase listener and why add ALL the values from the picklist, when I have
everything I need in UIInput.getSubmittedValues().  This seems so logical to
me that I'm shocked it isn't widely used in JSF, let alone that JSF takes
the liberty of telling me that my submitted values MUST be members of  the
original List (the latter I find to be a tremendous gaffe in the
spec).


Mike Kienenberger wrote:

I guess another possibility would be to add a
before-validation-phase-listener that temporarily adds the List A
values to the List B component's allowed choices, then removes them in
the after phase.

I think trying to handle this after validation is going to cause too
many other problems.

On 4/11/07, monkeyden <[EMAIL PROTECTED]> wrote:

I'm implementing a "mover box control", which consists of two select
boxes
and two mover buttons (Add/Remove).
In the valueChangeListener method,  I need to programmatically take the
submitted values and create SelectItems out of them.  In order to trick
JSF
into thinking that they are valid, I'd like to update the model.  This is
done to get around the problem of submitted values not being valid when
they
are not a subset of the original list.  I've tried several of the methods
on
UIInput and UIViewRoot but none seem to be working correctly.  I know
Tomahawk has something like this in the sandbox.  We're using ICEFaces
but I
think this is a standard JSF question.

Thanks for the guidance
--
View this message in context:
http://www.nabble.com/Programatically-updating-the-model-tf3562422.html#a9949895
Sent from the MyFaces - Users mailing list archive at Nabble.com.










Re: Programatically updating the model

2007-04-16 Thread monkeyden

Wouldn't it be simpler to just create SelectItems from the submitted values,
in the VCL, and set the backing bean property so they match?  Who needs a
phase listener and why add ALL the values from the picklist, when I have
everything I need in UIInput.getSubmittedValues().  This seems so logical to
me that I'm shocked it isn't widely used in JSF, let alone that JSF takes
the liberty of telling me that my submitted values MUST be members of  the
original List (the latter I find to be a tremendous gaffe in the
spec).


Mike Kienenberger wrote:
> 
> I guess another possibility would be to add a
> before-validation-phase-listener that temporarily adds the List A
> values to the List B component's allowed choices, then removes them in
> the after phase.
> 
> I think trying to handle this after validation is going to cause too
> many other problems.
> 
> On 4/11/07, monkeyden <[EMAIL PROTECTED]> wrote:
>>
>> I'm implementing a "mover box control", which consists of two select
>> boxes
>> and two mover buttons (Add/Remove).
>> In the valueChangeListener method,  I need to programmatically take the
>> submitted values and create SelectItems out of them.  In order to trick
>> JSF
>> into thinking that they are valid, I'd like to update the model.  This is
>> done to get around the problem of submitted values not being valid when
>> they
>> are not a subset of the original list.  I've tried several of the methods
>> on
>> UIInput and UIViewRoot but none seem to be working correctly.  I know
>> Tomahawk has something like this in the sandbox.  We're using ICEFaces
>> but I
>> think this is a standard JSF question.
>>
>> Thanks for the guidance
>> --
>> View this message in context:
>> http://www.nabble.com/Programatically-updating-the-model-tf3562422.html#a9949895
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Programatically-updating-the-model-tf3562422.html#a10028876
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Latest sandbox war files

2007-04-16 Thread Mike Kienenberger

http://wiki.apache.org/myfaces/FAQ#download-other-stuff

On 4/16/07, ThinkBlue <[EMAIL PROTECTED]> wrote:


Does anybody know where I can get the latest sandbox war files for the site
found below:

http://www.irian.at/myfaces-sandbox/home.jsf
http://www.irian.at/myfaces-sandbox/home.jsf

Or could you tell me how to implement the the "Effect - DOJO and
script.aculo.us effects" found under the Miscellaneous section of the page
above.

Thank you

System Configuration:

JBoss AS 4.0.5
JBoss IDE for Eclipse 2.0.0.Beta2
   maven plugin 0.0.10
Java 5.0_11
Windows XP
--
View this message in context: 
http://www.nabble.com/Latest-sandbox-war-files-tf3588113.html#a10027245
Sent from the MyFaces - Users mailing list archive at Nabble.com.




Latest sandbox war files

2007-04-16 Thread ThinkBlue

Does anybody know where I can get the latest sandbox war files for the site
found below:

http://www.irian.at/myfaces-sandbox/home.jsf
http://www.irian.at/myfaces-sandbox/home.jsf 

Or could you tell me how to implement the the "Effect - DOJO and
script.aculo.us effects" found under the Miscellaneous section of the page
above.

Thank you

System Configuration:

JBoss AS 4.0.5 
JBoss IDE for Eclipse 2.0.0.Beta2
   maven plugin 0.0.10
Java 5.0_11
Windows XP
-- 
View this message in context: 
http://www.nabble.com/Latest-sandbox-war-files-tf3588113.html#a10027245
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: forceId warning when using facelets

2007-04-16 Thread Simon Kitching
I agree with your point about scripting being "unobtrusive", ie that 
ideally it should transparently "attach" to existing objects to enhance 
their behaviour without having to modify the original elements, like 
subclassing extends a class without modifying it.


However completely breaking the encapsulation of JSF components to do 
that is ugly. Really ugly. If you are enough of a "purist" to care about 
implementing javascript in an "unobtrusive" manner then surely you care 
enough about encapsulation to not break that unless absolutely 
necessary. If the page is not composed of multiple fragments, then the 
IDs are stable and can be used as-is without forceId; if the page is 
being composed from multiple fragments then using forceId couples these 
fragments together (risks id collisions).


A tag like the one I suggest which generates a js variable containing 
the clientId of a specified component seems to generally meet your 
requirement of "unobtrusive", in that it can be placed in the page 
independently of the component it references. And it can be applied to 
any component, not just Tomahawk ones.


Styles are a different problem; I agree I cannot see any elegant 
solution. One choice is to specify styleClass="id_foo" on the element 
and then target the style using the class rather than the id. Not very 
nice, but is it any more obtrusive than specifying "forceId" on the JSF 
component? And at least styleClass is part of the JSF standard.


Regards,

Simon

Stefan Frank wrote:
There are some usecases, where it is really, really useful to have a 
definite id on the component and where forceid is needed: eg. if you 
want to use tinyMCE as texteditor on a textfield. Using a defined id is 
the only solution to style different textfields with different 
tinyMCE-Skins.


The onclick-handler and passing this is not a good or even sufficient 
solution to this problem: Remember, that this is still markup, not code, 
and an unobtrusive way of adding behavior to the elements in a dom-tree 
is certainly preferrable to scattering your code over the whole page 
(even if it is generated and "only" javascript) - (eg. see 
http://alistapart.com/articles/behavioralseparation for a discussion of 
unobtrusive javascript)


and unless someone can show up a better way, forceId is currently the 
only way to tie hand-written javascript to jsf-components


therefore +0.8 by me, as it is dirty, but useful sometimes.

cheers
stf

2007/4/13, Volker Weber <[EMAIL PROTECTED] >:

i revert to +0.5 because im not realy involved in tomahawk.

But if someone try to introduce forceId to tobago he gets my -1.

I still can't see any reason to use this (except user/password fields
on form based login).
Regards,
   Volker

2007/4/13, Volker Weber <[EMAIL PROTECTED]  >:
 > 2007/4/12, Simon Kitching <[EMAIL PROTECTED]
>:
 > > And forceId sucks anyway. I'd like to see it deprecated and
removed from
 > > Tomahawk completely.
 >
 > +1
 >
 > :-)
 >
 > Regards,
 >   Volker
 >
 > >
 > > This is not needed when javascript is invoked from the
"onclick" of a
 > > component, which is most of the time. Just pass the "this"
component to
 > > the javascript function and resolve the desired component id
relative to
 > > the client-id of the component on which the onclick occurred.
 > >
 > > For the other cases, a tag that outputs the client-id of a target
 > > component as a javascript variable is a nicer solution. At
worst, there
 > > is a collision of javascript variable names but at least that
doesn't
 > > stuff up the JSF component ids.
 > >
 > > Regards,
 > >
 > > Simon
 > >
 > > Mike Kienenberger wrote:
 > > > Probably because facelets detects valid attributes by looking
for a
 > > > concrete getter.
 > > >
 > > > ForceId is implemented as a generic getter, so facelets will
never be
 > > > able to find a "getForceId()" method on a component.You
can ignore
 > > > the warning as facelets will just set/get using the generic
method
 > > > when the concrete method fails.   Maybe some point down the
road it
 > > > might be worthwhile to see facelet taglib files identify these
 > > > "hidden" attributes, but functionally, it'll work just fine
as is.
 > > > Having to add these to the taglib files starts to make it too
much
 > > > like jsp busywork :-)
 > > >
 > > > On 4/12/07, [EMAIL PROTECTED]
 <[EMAIL PROTECTED]
> wrote:
 > > >> Don't know if this has been discussed here before...
 > > >>
 > > >> I am getting warnings that the 'forceId' attribute is not on
various
 > > >> types, e.g.,
org.apache.myfaces.component.html.ext.HtmlInputText.  I
 > > >

Re: address bar

2007-04-16 Thread Kevin Gutch

Oh Ok! I just figured I was doing something incorrect!

Simon Kitching wrote:

Kevin Gutch wrote:
Whenever I click on a commandlink, my navigation is successful but 
the address in my address bar is always one page behind my current view.


Yep, that's a well known issue. It's caused by the fact that JSF uses 
internal forwards a lot. When the browser POSTs data to /foo.jsf the 
server-side code can decide to render page /bar.jsf back to the user. 
However what the browser sees is that it POSTed to /foo.jsf and got 
back some content. It doesn't know that the content was generated by 
page /bar.jsp.


A solution is to mark your JSF navigation rules with "". 
When the code handling the POST decides to navigate to bar.jsp it will 
then send an HTTP redirect message back to the browser telling it to 
fetch bar.jsp, which fixes the problem. However that has a number of 
drawbacks, of which performance is one.


Note that this isn't really a JSF issue as such, more a problem with 
any framework that uses "forwards" within the server. I don't know PHP 
or ruby-on-rails or Tapestry but would expect them all to have exactly 
the same issue.


What is really needed is some extension to HTTP to allow the served 
page to tell the browser what to display as the page url. However that 
may be undesirable for security reasons..



Regards,

Simon



--

*Kevin Gutch*
*Protech Products, Inc*.
407.328.5300, ext. 102
407.328.5250 (fax)




smime.p7s
Description: S/MIME Cryptographic Signature


Re: address bar

2007-04-16 Thread Simon Kitching

Kevin Gutch wrote:
Whenever I click on a commandlink, my navigation is successful but the 
address in my address bar is always one page behind my current view.


Yep, that's a well known issue. It's caused by the fact that JSF uses 
internal forwards a lot. When the browser POSTs data to /foo.jsf the 
server-side code can decide to render page /bar.jsf back to the user. 
However what the browser sees is that it POSTed to /foo.jsf and got back 
some content. It doesn't know that the content was generated by page 
/bar.jsp.


A solution is to mark your JSF navigation rules with "". When 
the code handling the POST decides to navigate to bar.jsp it will then 
send an HTTP redirect message back to the browser telling it to fetch 
bar.jsp, which fixes the problem. However that has a number of 
drawbacks, of which performance is one.


Note that this isn't really a JSF issue as such, more a problem with any 
framework that uses "forwards" within the server. I don't know PHP or 
ruby-on-rails or Tapestry but would expect them all to have exactly the 
same issue.


What is really needed is some extension to HTTP to allow the served page 
to tell the browser what to display as the page url. However that may be 
undesirable for security reasons..



Regards,

Simon


address bar

2007-04-16 Thread Kevin Gutch

Hi,

I am not 100% sure this is a MyFaces issue but I thought I would start 
here. I am using Facelets with MyFaces.
Whenever I click on a commandlink, my navigation is successful but the 
address in my address bar is always one page behind my current view.
For instance, if I at at Home and click 'About Us' the about us page is 
rendered but my navigation still says something like


http://localhost:8080/mycontext/pages/main.htm

If I then click 'Contact Us' the contact page is rendered and the 
address bar says:


http://localhost:8080/mycontext/pages/common/about.htm

If I then select 'home' I get

http://localhost:8080/mycontext/pages/common/contact.htm

This really just seems to be a pain more than anything. Does anyone have 
any idea what is causing it?


Note that my web.xml Faces Servlet value is *.htm


   Faces Servlet
   *.htm
   


smime.p7s
Description: S/MIME Cryptographic Signature


Re: [ReducedHTMLParser] Invalid tag found

2007-04-16 Thread Simon Kitching
The line reported is on the generated HTML but *before* the insertion of 
any "resources", eg links to scripts and stylesheets. Looking at line 93 
in the generated html will therefore not be quite right, but the problem 
should be within the following 20 lines or so (ie lines 93-113) 
depending on how many components with resources you have in your page.


Mike Kienenberger wrote:

Dave,

I can't remember if this works, but have you tried viewing the raw
html source and seeing what's on line 93?   I think by the time the
ReducedHTMLParser is working on the data, it's working with the
generated html.

On 4/15/07, Dave <[EMAIL PROTECTED]> wrote:

[ReducedHTMLParser] Invalid tag found: unexpected input while looking for
attr name or '/>' at line 93

There are many  jsp files.
What is the way to find the file with the error?

Thanks!

 
Ahhh...imagining that irresistible "new car" smell?
 Check out new cars at Yahoo! Autos.






Re: f:attribute in phaselistener

2007-04-16 Thread Simon Kitching

Garner, Shawn wrote:
I upgraded to 1.1.5 and now my phase listener can no longer get my 
f:attribute attribute on a component (eg: ).


I iterate over the client IDs with messages by doing 
FacesContext.getClientIdsWithMessages();


I get the component by UIViewRoot.findComponent(clientID) and then try 
to get the attribute by String fieldRef = 
component.getAttributes().get(“fieldRef”);


It worked before I upgraded.


There was a change to f:attribute in 1.1.5; before then it would 
evaluate its expression on first view and store the result on the target 
component. From 1.1.5 it stores the EL-expression on the target 
component and evaluates it each time.


However the attribute should still be present. Maybe it is there but 
evaluating to null at the time you make the call?


Try component.getAttributes().containsKey("fieldRef") to see if the 
entry is there..


Regards,

Simon


Call for Papers Opens for ApacheCon US 2007

2007-04-16 Thread Dennis Byrne

Call for Papers Opens for ApacheCon US 2007

The Call for Papers is now open for ApacheCon US, to be held November
12-16 at the Peachtree Westin, Atlanta. The conference will consist
of two day of tutorials (November 12-13) and three days of regular
conference sessions (November 14-16).

Please log in to the website at http://apachecon.com/html/login.html
to submit your proposal. Further details about fees and are
avaialable on the CFP form.

Topics appropriate for submission to this conference are manifold,
and may include but are not restricted to:

* ASF projects
* ASF-Incubated projects
* Scripting languages and dynamic content such as Java, Perl, Python,
Ruby, XSL, and PHP
* New technologies and broader initiatives such as Web Services and
Web 2.0
* Security and e-commerce, performance tuning, load balancing, and
high availability
* Business and community issues surrounding the ASF and Open Source

The paper submission deadline is Monday, 28 April 2007, Midnight GMT.

Thanks, and we hope to hear from you, and to see you in Atlanta.
--
The ApacheCon Planners
[EMAIL PROTECTED]


f:attribute in phaselistener

2007-04-16 Thread Garner, Shawn
I upgraded to 1.1.5 and now my phase listener can no longer get my
f:attribute attribute on a component (eg: ).

I iterate over the client IDs with messages by doing
FacesContext.getClientIdsWithMessages();

I get the component by UIViewRoot.findComponent(clientID) and then try
to get the attribute by String fieldRef =
component.getAttributes().get("fieldRef");

 

 

It worked before I upgraded.

 

Can somebody help me?

 

Shawn 

 



Re: datatable and commandlink in request scope

2007-04-16 Thread Brummeline Braaten
That made things a bit clearer. I think I'll use the preserveDataModel, but when
I try I get a Nullpointerexception and a Jasperexception:

20:17:20,875 ERROR [PhaseListenerManager] Exception in PhaseListener 
RENDER_RESPONSE(6) beforePhase.
java.lang.NullPointerException

20:17:21,046 ERROR [Engine] ApplicationDispatcher[/webmetoder] Servlet.service()
 for servlet jsp threw exception
java.lang.NullPointerException

20:17:21,046 ERROR [Engine] StandardWrapperValve[Faces Servlet]: 
Servlet.service() for servlet Faces Servlet threw exception
javax.faces.FacesException: org.apache.jasper.JasperException

What is wrong now?





Re: Integration of Tobago into portal

2007-04-16 Thread Bernd Bohmann

Hello Kristoff,

can you describe and send me a working setup for a portlet, please.

Regards

Bernd


[EMAIL PROTECTED] wrote:

Hello,

I am trying to integrate a Tobago-JSF Page into a portlet. While trying to 
do so I ran into a problem. The initial rendering of the JSF-Page works 
just fine. However, clicking a tc:button makes JavaScript throw an error. 
What I could gather from the page layout and debug output of my browser is 
that the error is related to the generated page content.
As far as I understand it, Tobago relies on Java-Script Code being 
executed onLoad in the body tag of the generated page.
But according to specs portlets may not generate a body-element. This 
prevents the request from being processed properly. (Tobago.action.has no 
properties) on the marked line:


 /**
* Submitting the page with specified actionId.
*/
  submitAction: function(actionId) {
Tobago.Transport.request(function() {
  var req = Tobago.Transport.requests.shift(); // remove this from 
queue

  LOG.debug("request removed :" + req.toString());
-->  var oldAction = Tobago.action.value;
  Tobago.action.value = actionId;
  Tobago.onSubmit();
//  LOG.debug("submit form with action: " + Tobago.action.value);
  Tobago.form.submit();
  Tobago.action.value = oldAction;
}, true);
  },

Could anybody tell me if integrating Tobago into a portal could work and 
how? 


Thank you all very much!

Kristoff Kiefer

-
NORD/IT NORD/LB Informationstechnologie GmbH
Geschäftsführer: Frerich-Weers Bremer, Volker Nagy
HRB Nr. 58021, Amtsgericht Hannover
www.nordlb-it.de

Technologie- und  Informatik-Services  -  Softwareengineering
Kaiserallee 9, D-30175 Hannover
Fon: +49 511 / 361-9507

mailto:[EMAIL PROTECTED]
_

Sicherheitshinweis http://www.nordlb-it.de/secure.html



Re: required=true?

2007-04-16 Thread Andrew Robinson

The same approach as this can be used with A4J with a4j:support and
a4j:region tags to use AJAX to update the zone instead of a full page
refresh.

On 4/16/07, Mike Kienenberger <[EMAIL PROTECTED]> wrote:

First off, don't use the OptionalValidationFramework.   There's always
a better solution.

Second, I'm still trying to wrap my mind around this problem, so my
answer might be flawed.

Third, I'm going to use a checkbox since I have made almost no use of
radio buttons to date.

A quick test of this code works.



















public class OptionalRequired {

private boolean required;
private String text;

public boolean isRequired() {
return required;
}
public void setRequired(boolean required) {
this.required = required;
}
public String getText() {
return text;
}
public void setText(String value) {
this.text = value;
}
}


On 4/15/07, Bjørn T Johansen <[EMAIL PROTECTED]> wrote:
> I have small problem and I was wondering how people get around this...
>
> I have a radiobutton with yes or no as the two choices that decides if a text 
field should be rendered or not (choosing yes or no
> will submit the page)... Also if this text field is rendered, it is a 
mandatory field and need some input..
>
> If I use required = true on the text field, then when the text field is 
rendered and I choose the other choice of the
> radiobuttons (that would hide the text field again), I get an error saying 
that an input is required in the text field (which is
> normally correct but not this time, because I am just trying to hide the text 
field again)
> If I use immediate = true, then the value of the radiobutton is not set and 
the text field is never rendered...
>
>
> I guess this is a normal problem but not sure how to best solve this?
>
>
> Regards,
>
> BTJ
>
> --
> 
---
> Bjørn T Johansen
>
> [EMAIL PROTECTED]
> 
---
> Someone wrote:
> "I understand that if you play a Windows CD backwards you hear strange Satanic 
messages"
> To which someone replied:
> "It's even worse than that; play it forwards and it installs Windows"
> 
---
>



Re: "Table of Contents" Component

2007-04-16 Thread Jörn Zaefferer

Would you mind using a client-side solution?
http://solidgone.com/jquery/jqTOC/jqTOC.htm

Regards
Jörn


Re: weird around JSF table

2007-04-16 Thread Dave
But  can not have attributes such as
   
  
   ... 
  

Adrian Mitev <[EMAIL PROTECTED]> wrote:
  Try t:htmlTag

  2007/4/16, Dave <[EMAIL PROTECTED]>:  I tried the Method 2. It did not work.  
 

Adrian Mitev < [EMAIL PROTECTED]> wrote:   Try:

  

  

 



  2007/4/15, Dave <[EMAIL PROTECTED]>: I am trying to wrapper  
around table using  or , 
   
  Method 1
  ---
   
   
    
  
  
   
  Method 2
  --
   
   
     
   
   
   
  But the rendered HTML (from browser source) is 
   
 
   
  instead of wrappering around the table.
   
  It looks weird to me.  Thanks for help. 
   
  
  
-
  Ahhh...imagining that irresistible "new car" smell? 
Check out new cars at Yahoo! Autos.   




  
  
-
  Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! Autos.   




   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

"Table of Contents" Component

2007-04-16 Thread AMIR-TAHMASSEB Marc
Hi,
 
Does anybody knows if there is a myfaces component that generate a table
of content by using the H1, H2... hierarchy.
 
I want to display this TOC in a box at the begining of each page
displayed...
 
I hope something like this exists,
regards
Marc
 
Marc Kamran AMIR-TAHMASSEB
European Ombudsman Office
Web Developer
http://www.ombudsman.europa.eu  
mailto:[EMAIL PROTECTED]


Right aligned panelTabbedPane?

2007-04-16 Thread Lars Hagrot
I am using the Tomahawk panelTabbedPane and am trying to align the tabs to the 
right.
Is this possible?
 
Currently the tabs is displayed one after another followed by an empty column 
()
 
The output I am trying to achieve is instead supposed to start with an empty 
column.
 
Regards 
/Lars Hagrot 


Re: required=true?

2007-04-16 Thread Mike Kienenberger

First off, don't use the OptionalValidationFramework.   There's always
a better solution.

Second, I'm still trying to wrap my mind around this problem, so my
answer might be flawed.

Third, I'm going to use a checkbox since I have made almost no use of
radio buttons to date.

A quick test of this code works.



















public class OptionalRequired {

   private boolean required;
   private String text;

   public boolean isRequired() {
   return required;
   }
   public void setRequired(boolean required) {
   this.required = required;
   }
   public String getText() {
   return text;
   }
   public void setText(String value) {
   this.text = value;
   }
}


On 4/15/07, Bjørn T Johansen <[EMAIL PROTECTED]> wrote:

I have small problem and I was wondering how people get around this...

I have a radiobutton with yes or no as the two choices that decides if a text 
field should be rendered or not (choosing yes or no
will submit the page)... Also if this text field is rendered, it is a mandatory 
field and need some input..

If I use required = true on the text field, then when the text field is 
rendered and I choose the other choice of the
radiobuttons (that would hide the text field again), I get an error saying that 
an input is required in the text field (which is
normally correct but not this time, because I am just trying to hide the text 
field again)
If I use immediate = true, then the value of the radiobutton is not set and the 
text field is never rendered...


I guess this is a normal problem but not sure how to best solve this?


Regards,

BTJ

--
---
Bjørn T Johansen

[EMAIL PROTECTED]
---
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic 
messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
---



Re: Navigation Rules - Model based (dynamic) navigation support possible?

2007-04-16 Thread Andrew Robinson

You can also have a look at JBoss Seam page flows.

On 4/16/07, Torsten Krah <[EMAIL PROTECTED]> wrote:

By default jsf is using a outcome based navigation model.

But consider a content managment system, where the user can model
"navigation decisions" by "drawing" connections from one object to another.
Data is modeled in some known way to map them to an url, navigation
between this model can be defined from the user.

The object defines the view to be rendered, how to navigate through the
views, when the navigation decision is done in the model (have to be
done there to be changeable by the user).

How could this be done with JSF.
Navigation rules have to be "there" before starting the webapp.
So how can a navigation be handled in a jsf compatible way, to support
dynamic made navigation rules in the model tier (and maybe support url
based navigation).

Is there any good way to do this, maybe some thought?

Torsten

PS: Please dont tell only to use a custom NavigationHandler (i guess,
but dont know if all these wishes could be done with it), some more
comments are welcome.



RE: Navigation Rules - Model based (dynamic) navigation support possible?

2007-04-16 Thread Conway. Fintan \(IT Solutions\)
Hi Thorsten,

Have a look at the reply to this mail.
http://www.nabble.com/Changing-JSF-scenario-at-runtime-tf395068.html#a10
88201

Hope this helps,

Fintan

-Original Message-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: 16 April 2007 15:09
To: MyFaces Discussion
Subject: Re: Navigation Rules - Model based (dynamic) navigation support
possible?


Use a custom NavigationHandler.  :-)

That's why the hook exists, so not using it is like saying you want to
develop a JSF application without using JSF.

Have you ever used JDeveloper? (free download from Oracle, so if not,
download it and take a look)

Basically, it uses the exact process you describe (model showing pages
as objects, the user draws lines between the pages and labels each line
with the outcome on which to navigate from one object to the next), and
creates the navigation rules from it.

It sounds like the only difference between what you want and what
JDeveloper demonstrates using the standard NavigationHandler is that
you want to change the rules on the fly.Seems like that should be
a fairly straight-forward customization of the existing handler -- worse
case you'd copy the NavigationHandler source code, and change it to
fetch data from an internal data source instead of a static set of
rules read from the config file.And if you did it in a generic
enough way, we might even be able to make it a configurable option for
MyFaces where all you need to do is supply an alternate rule data source
in your config file rather than providing an entire new navigation
handler.

If nothing else, we could probably support it as a Tomahawk option.
Tomahawk already is set up to share code with MyFaces, so it should be
trivial to push the navigation handler into the shared core project, add
the hooks to customize it from Tomahawk, and create a Tomahawk subclass
to make use of those hooks.


On 4/16/07, Torsten Krah <[EMAIL PROTECTED]> wrote:
> By default jsf is using a outcome based navigation model.
>
> But consider a content managment system, where the user can model 
> "navigation decisions" by "drawing" connections from one object to 
> another. Data is modeled in some known way to map them to an url, 
> navigation between this model can be defined from the user.
>
> The object defines the view to be rendered, how to navigate through 
> the views, when the navigation decision is done in the model (have to 
> be done there to be changeable by the user).
>
> How could this be done with JSF.
> Navigation rules have to be "there" before starting the webapp. So how

> can a navigation be handled in a jsf compatible way, to support 
> dynamic made navigation rules in the model tier (and maybe support url

> based navigation).
>
> Is there any good way to do this, maybe some thought?
>
> Torsten
>
> PS: Please dont tell only to use a custom NavigationHandler (i guess, 
> but dont know if all these wishes could be done with it), some more 
> comments are welcome.
>

* ** *** ** * ** *** ** * ** *** ** *
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed.
Any views or opinions presented are solely those of the author, and do not 
necessarily
represent those of ESB.
If you have received this email in error please notify the sender.

Although ESB scans e-mail and attachments for viruses, it does not guarantee
that either are virus-free and accepts no liability for any damage sustained
as a result of viruses.

* ** *** ** * ** *** ** * ** *** ** *



Re: [ReducedHTMLParser] Invalid tag found

2007-04-16 Thread Mike Kienenberger

Dave,

I can't remember if this works, but have you tried viewing the raw
html source and seeing what's on line 93?   I think by the time the
ReducedHTMLParser is working on the data, it's working with the
generated html.

On 4/15/07, Dave <[EMAIL PROTECTED]> wrote:

[ReducedHTMLParser] Invalid tag found: unexpected input while looking for
attr name or '/>' at line 93

There are many  jsp files.
What is the way to find the file with the error?

Thanks!

 
Ahhh...imagining that irresistible "new car" smell?
 Check out new cars at Yahoo! Autos.




Re: phase listener..

2007-04-16 Thread Mike Kienenberger

lifecycle.addPhaseListener(PhaseListener phaseListener);

On 4/16/07, Sorin Silaghi <[EMAIL PROTECTED]> wrote:

Hello,

  is there any way to register a phase listener dynamically ???



Integration of Tobago into portal

2007-04-16 Thread Kristoff . Kiefer
Hello,

I am trying to integrate a Tobago-JSF Page into a portlet. While trying to 
do so I ran into a problem. The initial rendering of the JSF-Page works 
just fine. However, clicking a tc:button makes JavaScript throw an error. 
What I could gather from the page layout and debug output of my browser is 
that the error is related to the generated page content.
As far as I understand it, Tobago relies on Java-Script Code being 
executed onLoad in the body tag of the generated page.
But according to specs portlets may not generate a body-element. This 
prevents the request from being processed properly. (Tobago.action.has no 
properties) on the marked line:

 /**
* Submitting the page with specified actionId.
*/
  submitAction: function(actionId) {
Tobago.Transport.request(function() {
  var req = Tobago.Transport.requests.shift(); // remove this from 
queue
  LOG.debug("request removed :" + req.toString());
-->  var oldAction = Tobago.action.value;
  Tobago.action.value = actionId;
  Tobago.onSubmit();
//  LOG.debug("submit form with action: " + Tobago.action.value);
  Tobago.form.submit();
  Tobago.action.value = oldAction;
}, true);
  },

Could anybody tell me if integrating Tobago into a portal could work and 
how? 

Thank you all very much!

Kristoff Kiefer

-
NORD/IT NORD/LB Informationstechnologie GmbH
Geschäftsführer: Frerich-Weers Bremer, Volker Nagy
HRB Nr. 58021, Amtsgericht Hannover
www.nordlb-it.de

Technologie- und  Informatik-Services  -  Softwareengineering
Kaiserallee 9, D-30175 Hannover
Fon: +49 511 / 361-9507

mailto:[EMAIL PROTECTED]
_

Sicherheitshinweis http://www.nordlb-it.de/secure.html


Re: Navigation Rules - Model based (dynamic) navigation support possible?

2007-04-16 Thread Mike Kienenberger

Use a custom NavigationHandler.  :-)

That's why the hook exists, so not using it is like saying you want to
develop a JSF application without using JSF.

Have you ever used JDeveloper? (free download from Oracle, so if not,
download it and take a look)

Basically, it uses the exact process you describe (model showing pages
as objects, the user draws lines between the pages and labels each
line with the outcome on which to navigate from one object to the
next), and creates the navigation rules from it.

It sounds like the only difference between what you want and what
JDeveloper demonstrates using the standard NavigationHandler is that
you want to change the rules on the fly.Seems like that should be
a fairly straight-forward customization of the existing handler --
worse case you'd copy the NavigationHandler source code, and change it
to fetch data from an internal data source instead of a static set of
rules read from the config file.And if you did it in a generic
enough way, we might even be able to make it a configurable option for
MyFaces where all you need to do is supply an alternate rule data
source in your config file rather than providing an entire new
navigation handler.

If nothing else, we could probably support it as a Tomahawk option.
Tomahawk already is set up to share code with MyFaces, so it should be
trivial to push the navigation handler into the shared core project,
add the hooks to customize it from Tomahawk, and create a Tomahawk
subclass to make use of those hooks.


On 4/16/07, Torsten Krah <[EMAIL PROTECTED]> wrote:

By default jsf is using a outcome based navigation model.

But consider a content managment system, where the user can model
"navigation decisions" by "drawing" connections from one object to another.
Data is modeled in some known way to map them to an url, navigation
between this model can be defined from the user.

The object defines the view to be rendered, how to navigate through the
views, when the navigation decision is done in the model (have to be
done there to be changeable by the user).

How could this be done with JSF.
Navigation rules have to be "there" before starting the webapp.
So how can a navigation be handled in a jsf compatible way, to support
dynamic made navigation rules in the model tier (and maybe support url
based navigation).

Is there any good way to do this, maybe some thought?

Torsten

PS: Please dont tell only to use a custom NavigationHandler (i guess,
but dont know if all these wishes could be done with it), some more
comments are welcome.



Re: datatable and commandlink in request scope

2007-04-16 Thread Mike Kienenberger

I use t:saveState for everything.

However, you could also use t:dataTable preserveDataModel="true".

As for t:saveState, here is an example of correct usage:

   

You want to save the state of your t:dataTable's value binding
(probably a list).

In your example, it'd probably be:

   

You can place the t:saveState tag anywhere on the page (it's evaluated
at save state and restore state phases, so order doesn't matter).   It
doesn't have to be on the same line, but t:saveState does not take
children.All t:saveState does is encode the value of the bean you
point it at into the component tree, then decode it on the next
request and assign it back to the value of the bean you point it at.

On 4/16/07, Brummeline Braaten <[EMAIL PROTECTED]> wrote:

Adrian Mitev  googlemail.com> writes:

>
>
> Try with tomahawk t:saveState
>

I've tried that, but I can't get it to work as intended. Perhaps I save the
wrong state? I tried to save the whole bean, but then nothing worked. Is there
some sort of rule of where the place the savestate tag? And does it have to be
closed on the same line or can I use savestate over an entire form-tag?




Navigation Rules - Model based (dynamic) navigation support possible?

2007-04-16 Thread Torsten Krah

By default jsf is using a outcome based navigation model.

But consider a content managment system, where the user can model 
"navigation decisions" by "drawing" connections from one object to another.
Data is modeled in some known way to map them to an url, navigation 
between this model can be defined from the user.


The object defines the view to be rendered, how to navigate through the 
views, when the navigation decision is done in the model (have to be 
done there to be changeable by the user).


How could this be done with JSF.
Navigation rules have to be "there" before starting the webapp.
So how can a navigation be handled in a jsf compatible way, to support 
dynamic made navigation rules in the model tier (and maybe support url 
based navigation).


Is there any good way to do this, maybe some thought?

Torsten

PS: Please dont tell only to use a custom NavigationHandler (i guess, 
but dont know if all these wishes could be done with it), some more 
comments are welcome.


Re: XHTML Strict

2007-04-16 Thread Mike Kienenberger

From the JSF 1.1 spec:

=
8.5 Standard HTML RenderKit
Implementation
To ensure application portability, all JSF implementations are
required to include
support for a RenderKit, and the associated Renderers, that meet the
requirements defined in this section, to generate textual markup that
is compatible
with HTML 4.01.
=

However, if there are changes we can make to MyFaces Core that will
improve xhtml support while still meeting the above requirement, we
can make them.


On 4/16/07, Rudi Steiner <[EMAIL PROTECTED]> wrote:

Hi all,

making some investigations on XHTML-comfomance fo myFaces (without
Tomahawk) I found out, that the output of the basic components, like
,  and so on render valid XHTML but just
transitional (http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>).

The problem is, that our customer requires XHTML-Strict (http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>).

Running the XHTML-output of a standard form against the validator of
the W3C. I get some errormessages.

The first one ist, that there is no name-attribute in the defined DTD
for the form-element, but the -tag renders it:

, this elements
are enclosed in a  and don't produce any errors, but the hidden
fields inserted by myfaces are rendered after the closing -Tag.

Has anyone an idea? Isn't it required by the JSF-Spec to render
XHTML-Strict to be a standard conform implementation?


Best regards,
Rudi



Re: Integrating sandbox components with last stable version of myfaces

2007-04-16 Thread Mike Kienenberger

Ok.  That's really strange, because I downloaded

- tomahawk-sandbox-1.1.5-bin.zip
- tomahawk-sandbox-1.1.5-src.zip
for release candidate one (3/30/2007)

However, I don't see those files for release candidate 2.


On 4/16/07, Gerald Müllan <[EMAIL PROTECTED]> wrote:

Hi,

have a look under:

http://people.apache.org/builds/myfaces/nightly

There are no official releases of sandbox - only snapshot builds -
since it works like a playground. Therefore it is not listed in the
download releases section.

cheers,

Gerald

On 4/16/07, Rudi Steiner <[EMAIL PROTECTED]> wrote:
> Hi Mike,
>
> thank you for your fast reply, but under this link I can't find
> something like sandbox.jar.
> Is this jar-File included in one of the jar-Files on this page?
>
> Rudi
>
> On 4/13/07, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> > Use Myfaces Core 1.1.5 and the Myfaces Tomahawk/Sandbox 1.1.5 release
> > candidate found here:
> >
> > http://people.apache.org/builds/myfaces/tomahawk-1.1.5/
> >
> >
> >
> > On 4/13/07, Rudi Steiner <[EMAIL PROTECTED]> wrote:
> > > Hello,
> > >
> > > I set up a new project with myfaces-api-1.1.5.jar,
> > > myfaces-impl-1.1.5.jar, tomahawk-1.1.3.jar and everything works fine
> > > so far.
> > >
> > > Non I added tomahawk-sandbox-1.1.5-SNAPSHOT.jar from the nightly
> > > builds to test some sandbox components. The problem is, that I can't
> > > use the sandbox component but get this instead:
> > >
> > > java.lang.NoClassDefFoundError: org/apache/myfaces/custom/dojo/DojoWidget
> > >
> > > Googleing around I found, that "The dojo stuff was moved from
> > > sandbox to tom 3-4 weeks ago. So, the libraries should be found
> > > there." and realy, I found the class in the
> > > tomahawk-1.1.5-SNAPSHOT.jar.
> > >
> > > My problem is the following: I don't want to use snapshot-versions of
> > > the myfaces-impl just to use the sandbox components but I woul'd like
> > > to use the last stable versions of the myfaces- and tomahawk impl
> > > (myfaces-api-1.1.5.jar, myfaces-impl-1.1.5.jar, tomahawk-1.1.3.jar)
> > > plus the sandbox components (tomahawk-sandbox-1.1.5-SNAPSHOT.jar).
> > >
> > > Has anyone an idea, how I can get this combination up and running?
> > >
> > > Thank you,
> > > Rudi
> > >
> >
>


--
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



Re: datatable and commandlink in request scope

2007-04-16 Thread Brummeline Braaten
Adrian Mitev  googlemail.com> writes:

> 
> 
> Try something like this  one one line. In order save state
to work your bean has to implement Serializable interface. 
> 

I can't get it to work! If I save the whole bean, I get the same problem as if I
put the bean in session scope. And I dont know what part of the bean to save.
The problem is that the link's action isn't invoked. I guess this is because the
form that contains the commandlink isn't rendered at first. Then the form is
rendered and the link is shown on the page, but the link isn't working. So in
some way I have to make the action work and I dont understand how.



Re: datatable and commandlink in request scope

2007-04-16 Thread Adrian Mitev

Try something like this  one one line. In order save
state to work your bean has to implement Serializable interface.

2007/4/16, Brummeline Braaten <[EMAIL PROTECTED]>:


Adrian Mitev  googlemail.com> writes:

>
>
> Try with tomahawk t:saveState
>

I've tried that, but I can't get it to work as intended. Perhaps I save
the
wrong state? I tried to save the whole bean, but then nothing worked. Is
there
some sort of rule of where the place the savestate tag? And does it have
to be
closed on the same line or can I use savestate over an entire form-tag?




Re: datatable and commandlink in request scope

2007-04-16 Thread Brummeline Braaten
Adrian Mitev  googlemail.com> writes:

> 
> 
> Try with tomahawk t:saveState
> 

I've tried that, but I can't get it to work as intended. Perhaps I save the
wrong state? I tried to save the whole bean, but then nothing worked. Is there
some sort of rule of where the place the savestate tag? And does it have to be
closed on the same line or can I use savestate over an entire form-tag?



Re: how link svg file with jsf component

2007-04-16 Thread Gerald Müllan

Hi,

maybe some path-related problem in order to access the file in your
web-resource dir?

cheers,

Gerald

On 4/16/07, mathias °ö° <[EMAIL PROTECTED]> wrote:


hi david

i checked the object tag and tested in a simple html file linked to svg
file.
and this is working.
but the same is not running with the jsf web app.

http://../images/map.svg"; width="500" height="500"
type="image/svg+xml">



which params must adjusted by  component ?

best regards
mathias °ö°

David Delbecq-2 wrote:
>
> firefow can load svg using  tag, so you should check the the
> object tag is correct and the the pointed svg file is at proper location.
>
> En l'instant précis du 12/04/07 16:10, mathias °ö° s'exprimait en ces
> termes:
>> i have tested with :
>> at browser (ie and firefox) i see only a grey frame. the browser can´t
>> load
>> the svg image.
>> (if i start the svg image from my file browser it will open.)
>>
>> my next step i try with  component , but im not sure
>> which
>> attribute i must set.
>>
>> > codetype="image/svg+xml" codebase="test.svg" />
>>
>> but this code-snapshot does not work.
>>
>> best regards
>>
>>
>> David Delbecq-2 wrote:
>>
>>> Indeed, now you say this, am not sure the tomahwak htmlTag component
>>> accepts attributes other than the default uioutput ones.
>>> maybe something along this?
>>> 
>>> >> width="400" height="300">
>>> 
>>> 
>>>
>>>
>>> In facelets i would simply make, without verbatim
>>>
>>> >> width="#{someBean.someSvgWidth}" height="#{someBean.someSvgWidth}">
>>> 
>>>
>>> but won't work in JSP. Also the media tag of ajax4jsf is made to ouput
>>> 'media' in various tags (object, a, img, iframe), if you can afford an
>>> additionnal library...
>>>
>>>
>>> En l'instant précis du 12/04/07 10:40, mathias °ö° s'exprimait en ces
>>> termes:
>>>
 2. use htmTag component
 
 
 
 
 
 

 but is does not work. how i handle htmlTag Attributes?

 best regards
 mathias °ö°


 David Delbecq-2 wrote:


> graphicImage renders a   tag. Svgs are not supposed to be
> included with such tags. It's like trying to use a img tag to show a
> flash object.
>
> See here how to include svg in your page:
> http://wiki.svg.org/SVG_and_HTML
>
> When you have understand this, you can use either the ajx4jsf 'media'
> component or use the tomahawk 'htmlTag'  component to render your
> object
> tag.
>
> Also don't forget to setup your mimetype in your web.xml for svg
> ressources.
>
> En l'instant précis du 11/04/07 16:14, mathias °ö° s'exprimait en ces
> termes:
>
>
>> hi
>>
>> how link an extern svg-file with jsf component.
>> with
>> http://www.***/file.svg"; />
>> it does not work.
>>
>>
>>
>>
>
>


>>>
>>>
>>
>>
>
>
>

--
View this message in context: 
http://www.nabble.com/how-link-svg-file-with-jsf-component-tf3559628.html#a10013013
Sent from the MyFaces - Users mailing list archive at Nabble.com.





--
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces


Re: datatable and commandlink in request scope

2007-04-16 Thread Adrian Mitev

Try with tomahawk t:saveState

2007/4/16, Brummeline Braaten <[EMAIL PROTECTED]>:


How can I get a commandlink to work inside a datatable when my bean is
in request scope? If I change to sessionscope, the commandlink works,
but then the rest of my code stops working as intended.

This is my JSF code:

http://www.w3.org/TR/html4/strict.dtd";>
<[EMAIL PROTECTED] uri="http://java.sun.com/jsf/core"; prefix="f"%>
<[EMAIL PROTECTED] uri="http://java.sun.com/jsf/html"; prefix="h"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>


  
   

 
  


  
   
   
   
  

  

  
   

 
  
  
 
 
 
 
 
 

   
   
   
   
   
   
   









  




  
  

  




















The commandlink that doesn't work is with id="visealtlink".
When I click on the
link the action method is never called.

How can I solve this?





Re: Integrating sandbox components with last stable version of myfaces

2007-04-16 Thread Gerald Müllan

Yes, the last stable tomahwak version is 1.1.5 and you can not get any
kind of "last-stable-sandbox-release". So, if you take the
sandbox-version above, in combination with the 1.1.5 releases you
should be lucky without any NoClassDefFoundError.

Tom 1.1.5 is released and declared as stable, no 1.1.5 snapshot anymore.

cheers,

Gerald

On 4/16/07, Rudi Steiner <[EMAIL PROTECTED]> wrote:

Hi Gerald,

the problem is, that taking this version of sandbox, I get the error
described above. My question was, where I can get a sanbox-version
compatible with the last official release of myfaces-impl and tomahawk
(myfaces-impl-1.1.5.jar, tomahawk-1.1.3.jar).

best regards,
Rudi

On 4/16/07, Gerald Müllan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> have a look under:
>
> http://people.apache.org/builds/myfaces/nightly
>
> There are no official releases of sandbox - only snapshot builds -
> since it works like a playground. Therefore it is not listed in the
> download releases section.
>
> cheers,
>
> Gerald
>
> On 4/16/07, Rudi Steiner <[EMAIL PROTECTED]> wrote:
> > Hi Mike,
> >
> > thank you for your fast reply, but under this link I can't find
> > something like sandbox.jar.
> > Is this jar-File included in one of the jar-Files on this page?
> >
> > Rudi
> >
> > On 4/13/07, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> > > Use Myfaces Core 1.1.5 and the Myfaces Tomahawk/Sandbox 1.1.5 release
> > > candidate found here:
> > >
> > > http://people.apache.org/builds/myfaces/tomahawk-1.1.5/
> > >
> > >
> > >
> > > On 4/13/07, Rudi Steiner <[EMAIL PROTECTED]> wrote:
> > > > Hello,
> > > >
> > > > I set up a new project with myfaces-api-1.1.5.jar,
> > > > myfaces-impl-1.1.5.jar, tomahawk-1.1.3.jar and everything works fine
> > > > so far.
> > > >
> > > > Non I added tomahawk-sandbox-1.1.5-SNAPSHOT.jar from the nightly
> > > > builds to test some sandbox components. The problem is, that I can't
> > > > use the sandbox component but get this instead:
> > > >
> > > > java.lang.NoClassDefFoundError: 
org/apache/myfaces/custom/dojo/DojoWidget
> > > >
> > > > Googleing around I found, that "The dojo stuff was moved from
> > > > sandbox to tom 3-4 weeks ago. So, the libraries should be found
> > > > there." and realy, I found the class in the
> > > > tomahawk-1.1.5-SNAPSHOT.jar.
> > > >
> > > > My problem is the following: I don't want to use snapshot-versions of
> > > > the myfaces-impl just to use the sandbox components but I woul'd like
> > > > to use the last stable versions of the myfaces- and tomahawk impl
> > > > (myfaces-api-1.1.5.jar, myfaces-impl-1.1.5.jar, tomahawk-1.1.3.jar)
> > > > plus the sandbox components (tomahawk-sandbox-1.1.5-SNAPSHOT.jar).
> > > >
> > > > Has anyone an idea, how I can get this combination up and running?
> > > >
> > > > Thank you,
> > > > Rudi
> > > >
> > >
> >
>
>
> --
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>




--
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces


Re: weird around JSF table

2007-04-16 Thread Adrian Mitev

Try t:htmlTag

2007/4/16, Dave <[EMAIL PROTECTED]>:


I tried the Method 2. It did not work.

*Adrian Mitev <[EMAIL PROTECTED]>* wrote:

Try:

 

  

 



2007/4/15, Dave <[EMAIL PROTECTED]>:
>
> I am trying to wrapper  around table using  or
> ,
>
> Method 1
> ---
> 
>
>   
>  
>
> Method 2
> --
> 
>
>   
>
> 
>
> But the rendered HTML (from browser source) is
>
>
>
> instead of wrappering around the table.
>
> It looks weird to me.  Thanks for help.
>
>  --
> Ahhh...imagining that irresistible "new car" smell?
> Check out new cars at Yahoo! 
Autos.
>


--
Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! 
Autos.




Re: weird around JSF table

2007-04-16 Thread Dave
I tried the Method 2. It did not work. 

Adrian Mitev <[EMAIL PROTECTED]> wrote:  Try:

 

  

 



  2007/4/15, Dave <[EMAIL PROTECTED]>:I am trying to wrapper  
around table using  or , 
   
  Method 1
  ---
   
   
    
   
  
   
  Method 2
  --
   
   
    
   
  
   
  But the rendered HTML (from browser source) is 
   
 
   
  instead of wrappering around the table.
   
  It looks weird to me.  Thanks for help. 
   
  
  
-
  Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! Autos.   




   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

phase listener..

2007-04-16 Thread Sorin Silaghi

Hello,

 is there any way to register a phase listener dynamically ???


Re: how link svg file with jsf component

2007-04-16 Thread mathias °ö°

hi david

i checked the object tag and tested in a simple html file linked to svg
file.
and this is working.
but the same is not running with the jsf web app.

http://../images/map.svg"; width="500" height="500"
type="image/svg+xml"> 



which params must adjusted by  component ?

best regards
mathias °ö°

David Delbecq-2 wrote:
> 
> firefow can load svg using  tag, so you should check the the
> object tag is correct and the the pointed svg file is at proper location.
> 
> En l'instant précis du 12/04/07 16:10, mathias °ö° s'exprimait en ces
> termes:
>> i have tested with :
>> at browser (ie and firefox) i see only a grey frame. the browser can´t
>> load
>> the svg image.
>> (if i start the svg image from my file browser it will open.)
>>
>> my next step i try with  component , but im not sure
>> which
>> attribute i must set.
>>
>> > codetype="image/svg+xml" codebase="test.svg" />
>>
>> but this code-snapshot does not work.
>>
>> best regards
>>
>>
>> David Delbecq-2 wrote:
>>   
>>> Indeed, now you say this, am not sure the tomahwak htmlTag component
>>> accepts attributes other than the default uioutput ones.
>>> maybe something along this?
>>> 
>>> >> width="400" height="300">
>>> 
>>> 
>>>
>>>
>>> In facelets i would simply make, without verbatim
>>>
>>> >> width="#{someBean.someSvgWidth}" height="#{someBean.someSvgWidth}">
>>> 
>>>
>>> but won't work in JSP. Also the media tag of ajax4jsf is made to ouput
>>> 'media' in various tags (object, a, img, iframe), if you can afford an
>>> additionnal library...
>>>
>>>
>>> En l'instant précis du 12/04/07 10:40, mathias °ö° s'exprimait en ces
>>> termes:
>>> 
 2. use htmTag component
 
 
 
 
 
 

 but is does not work. how i handle htmlTag Attributes?

 best regards
 mathias °ö°


 David Delbecq-2 wrote:
   
   
> graphicImage renders a   tag. Svgs are not supposed to be
> included with such tags. It's like trying to use a img tag to show a
> flash object.
>
> See here how to include svg in your page:
> http://wiki.svg.org/SVG_and_HTML
>
> When you have understand this, you can use either the ajx4jsf 'media'
> component or use the tomahawk 'htmlTag'  component to render your
> object
> tag.
>
> Also don't forget to setup your mimetype in your web.xml for svg
> ressources.
>
> En l'instant précis du 11/04/07 16:14, mathias °ö° s'exprimait en ces
> termes:
> 
> 
>> hi
>>
>> how link an extern svg-file with jsf component.
>> with
>> http://www.***/file.svg"; />
>> it does not work.
>>
>>   
>>   
>>   
> 
> 
   
   
>>>
>>> 
>>
>>   
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-link-svg-file-with-jsf-component-tf3559628.html#a10013013
Sent from the MyFaces - Users mailing list archive at Nabble.com.



datatable and commandlink in request scope

2007-04-16 Thread Brummeline Braaten
How can I get a commandlink to work inside a datatable when my bean is 
in request scope? If I change to sessionscope, the commandlink works, 
but then the rest of my code stops working as intended.

This is my JSF code:

http://www.w3.org/TR/html4/strict.dtd";>
<[EMAIL PROTECTED] uri="http://java.sun.com/jsf/core"; prefix="f"%>
<[EMAIL PROTECTED] uri="http://java.sun.com/jsf/html"; prefix="h"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>

 
  
   

 
 

 
  
   
   
   
  
 
  

 
  
   

 
  
  
 
 
 
 
 
 

   
   
   
   
   
   
   








  



  
  

  
   



















The commandlink that doesn't work is with id="visealtlink". 
When I click on the
link the action method is never called.

How can I solve this?




XHTML Strict

2007-04-16 Thread Rudi Steiner

Hi all,

making some investigations on XHTML-comfomance fo myFaces (without
Tomahawk) I found out, that the output of the basic components, like
,  and so on render valid XHTML but just
transitional (http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>).

The problem is, that our customer requires XHTML-Strict (http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>).

Running the XHTML-output of a standard form against the validator of
the W3C. I get some errormessages.

The first one ist, that there is no name-attribute in the defined DTD
for the form-element, but the -tag renders it:

, this elements
are enclosed in a  and don't produce any errors, but the hidden
fields inserted by myfaces are rendered after the closing -Tag.

Has anyone an idea? Isn't it required by the JSF-Spec to render
XHTML-Strict to be a standard conform implementation?


Best regards,
Rudi


Re: Integrating sandbox components with last stable version of myfaces

2007-04-16 Thread Rudi Steiner

Hi Gerald,

the problem is, that taking this version of sandbox, I get the error
described above. My question was, where I can get a sanbox-version
compatible with the last official release of myfaces-impl and tomahawk
(myfaces-impl-1.1.5.jar, tomahawk-1.1.3.jar).

best regards,
Rudi

On 4/16/07, Gerald Müllan <[EMAIL PROTECTED]> wrote:

Hi,

have a look under:

http://people.apache.org/builds/myfaces/nightly

There are no official releases of sandbox - only snapshot builds -
since it works like a playground. Therefore it is not listed in the
download releases section.

cheers,

Gerald

On 4/16/07, Rudi Steiner <[EMAIL PROTECTED]> wrote:
> Hi Mike,
>
> thank you for your fast reply, but under this link I can't find
> something like sandbox.jar.
> Is this jar-File included in one of the jar-Files on this page?
>
> Rudi
>
> On 4/13/07, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> > Use Myfaces Core 1.1.5 and the Myfaces Tomahawk/Sandbox 1.1.5 release
> > candidate found here:
> >
> > http://people.apache.org/builds/myfaces/tomahawk-1.1.5/
> >
> >
> >
> > On 4/13/07, Rudi Steiner <[EMAIL PROTECTED]> wrote:
> > > Hello,
> > >
> > > I set up a new project with myfaces-api-1.1.5.jar,
> > > myfaces-impl-1.1.5.jar, tomahawk-1.1.3.jar and everything works fine
> > > so far.
> > >
> > > Non I added tomahawk-sandbox-1.1.5-SNAPSHOT.jar from the nightly
> > > builds to test some sandbox components. The problem is, that I can't
> > > use the sandbox component but get this instead:
> > >
> > > java.lang.NoClassDefFoundError: org/apache/myfaces/custom/dojo/DojoWidget
> > >
> > > Googleing around I found, that "The dojo stuff was moved from
> > > sandbox to tom 3-4 weeks ago. So, the libraries should be found
> > > there." and realy, I found the class in the
> > > tomahawk-1.1.5-SNAPSHOT.jar.
> > >
> > > My problem is the following: I don't want to use snapshot-versions of
> > > the myfaces-impl just to use the sandbox components but I woul'd like
> > > to use the last stable versions of the myfaces- and tomahawk impl
> > > (myfaces-api-1.1.5.jar, myfaces-impl-1.1.5.jar, tomahawk-1.1.3.jar)
> > > plus the sandbox components (tomahawk-sandbox-1.1.5-SNAPSHOT.jar).
> > >
> > > Has anyone an idea, how I can get this combination up and running?
> > >
> > > Thank you,
> > > Rudi
> > >
> >
>


--
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



Re: Integrating sandbox components with last stable version of myfaces

2007-04-16 Thread Gerald Müllan

Hi,

have a look under:

http://people.apache.org/builds/myfaces/nightly

There are no official releases of sandbox - only snapshot builds -
since it works like a playground. Therefore it is not listed in the
download releases section.

cheers,

Gerald

On 4/16/07, Rudi Steiner <[EMAIL PROTECTED]> wrote:

Hi Mike,

thank you for your fast reply, but under this link I can't find
something like sandbox.jar.
Is this jar-File included in one of the jar-Files on this page?

Rudi

On 4/13/07, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> Use Myfaces Core 1.1.5 and the Myfaces Tomahawk/Sandbox 1.1.5 release
> candidate found here:
>
> http://people.apache.org/builds/myfaces/tomahawk-1.1.5/
>
>
>
> On 4/13/07, Rudi Steiner <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I set up a new project with myfaces-api-1.1.5.jar,
> > myfaces-impl-1.1.5.jar, tomahawk-1.1.3.jar and everything works fine
> > so far.
> >
> > Non I added tomahawk-sandbox-1.1.5-SNAPSHOT.jar from the nightly
> > builds to test some sandbox components. The problem is, that I can't
> > use the sandbox component but get this instead:
> >
> > java.lang.NoClassDefFoundError: org/apache/myfaces/custom/dojo/DojoWidget
> >
> > Googleing around I found, that "The dojo stuff was moved from
> > sandbox to tom 3-4 weeks ago. So, the libraries should be found
> > there." and realy, I found the class in the
> > tomahawk-1.1.5-SNAPSHOT.jar.
> >
> > My problem is the following: I don't want to use snapshot-versions of
> > the myfaces-impl just to use the sandbox components but I woul'd like
> > to use the last stable versions of the myfaces- and tomahawk impl
> > (myfaces-api-1.1.5.jar, myfaces-impl-1.1.5.jar, tomahawk-1.1.3.jar)
> > plus the sandbox components (tomahawk-sandbox-1.1.5-SNAPSHOT.jar).
> >
> > Has anyone an idea, how I can get this combination up and running?
> >
> > Thank you,
> > Rudi
> >
>




--
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces