Hi,
can anyone tell me please, how to make a link for a file download?!
The File is saved in a database (Mysql).
so when I use h:outputLink value=bean.file
I get the message that the URL must be absolut.
thansk in advance,
Omid
--
View this message in context:
El dom, 06-05-2007 a las 23:30 -0700, omidh escribió:
Hi,
can anyone tell me please, how to make a link for a file download?!
The File is saved in a database (Mysql).
so when I use h:outputLink value=bean.file
I get the message that the URL must be absolut.
thansk in advance,
Omid
Is this planned?
Can I add the support myself? If yes can you give me a startpoint?
Michael
-Ursprüngliche Nachricht-
Von: Adam Winer [mailto:[EMAIL PROTECTED]
Gesendet: Sonntag, 6. Mai 2007 01:54
An: MyFaces Discussion
Betreff: Re: [Trinidad] labelAndAccessKey don't work
Ah! It
Hi All,
I have a doubt which may / may not be related to Tobago , but its sure that
its related to JSF.
I have a cron job running on UNIX platform , which is scheduled to perform a
specific operation.
Previously the job calls a URL with a parameter passed to the Servlet ,
something like this
You may extend the NonFacesRequestServlet like in the
tobago-example-nonfacesrequest.
Regards
Udo
Madan Narra schrieb:
Hi All,
I have a doubt which may / may not be related to Tobago , but its sure
that its related to JSF.
I have a cron job running on UNIX platform , which is scheduled
Thank you very much Simon,
it worked.
bye.
Simon Kitching-3 wrote:
The default timezone for date controls is UTC aka GMT.
Set the timezone attribute of the component to control what timezone is
used.
omidh wrote:
Hi all,
I have a little problem with tomahawk...
When Insert a
Are there any convenient way to do so once for app or should we spam
timezone attribute in every inputCalendar component?
2007/5/7, omidh [EMAIL PROTECTED]:
Thank you very much Simon,
it worked.
bye.
Simon Kitching-3 wrote:
The default timezone for date controls is UTC aka GMT.
Set the
Hi Udo,
Thnx for the quick response.
I have another doubt to get clarified .
In the NonFacesRequest Example, the FishServlet extends
NonFacesRequestServlet.
This class is specified in web.xml.
Can the same servlet be used as a Managed bean (registered in
faces-config.xml) ie if it can be
Referencing :
http://jsffaq.com/Wiki.jsp?ptitle=How+to+download+PDF+file+with+JSF%
3Fpage=HowToDownloadPDFFileWithJSF
I would like to know if there is the possibility to resolve the contentType
automatically??
regards Omid.
Josué Alcalde González-2 wrote:
El dom, 06-05-2007 a las 23:30
El lun, 07-05-2007 a las 03:22 -0700, omidh escribió:
Referencing :
http://jsffaq.com/Wiki.jsp?ptitle=How+to+download+PDF+file+with+JSF%
3Fpage=HowToDownloadPDFFileWithJSF
I would like to know if there is the possibility to resolve the contentType
automatically??
I used to save it in
No, as it is not yet released you have to build it from sources. You can
follow the instructions in the wiki:
http://wiki.apache.org/myfaces/MyFaces_1%2e2
Regards,
Bruno
On 04/05/07, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Good news!
Do you have a link to myfaces 1.2? I don't see it on
In the FishServlet is a reference to the managed bean fishPond.
It can be used after:
FishPond fishPond = (FishPond)
VariableResolverUtil.resolveVariable(facesContext, fishPond);
Regards
Udo
By the way, the NonFacesRequestServlet is a way to provide external
links with parameters to a
Hi everybody,
anybody working with tiles? I´m trying to get all values sent by binding.. the
problem is than when you generate an event from a h:form you only can get
binding values from this form.
How can I get all values sent by binding although they depends on different
managed-beans
Set the rows attribute of tc:sheet for example rows=1000.
Regards
Helmut
- Original Message -
From: Clemens Sietas [EMAIL PROTECTED]
To: users@myfaces.apache.org
Sent: Monday, May 07, 2007 2:22 PM
Subject: [Tobago] Only 100 datasets in tc:sheet
Hello,
I am using a tc:sheet to
Hi again,
does anyone has any experiences with the Tomahawk t:inputFileUpload in
Portlets???
I use the tomahawk-bridge and tomahawk works fine... (e.g.
t:inputCalendar)...
now when I use t:inputFileUpload I get the Filename, size, and even I can
call getBytes().
Thats the way I use it:
HI Omidh,
Thanks for help.
I used h:outputText to trigger the code to add javascript. If the method
returns work done, it would show up on page.
Dave
omidh [EMAIL PROTECTED] wrote:
Try to return a String...
public String getAddResource() {
FacesContext context =
Hi,
I have a JSF application in a Liferay Portal rendered as portlet using
MyFacesGenericPortlet class. I want to access user information that is
provided by the portal.
In a normal portlet application they can be accessed using
Hello,
I write a program which should show Data in a Table and the user should be
able to edit them.
The Table has to be generated dynamicaly. For simplicity I create a table
with 2 cols und 2 rows. When I run the application there appears a problem.
The valueChanged - Method is just called when
Adam,
if rendered is always false, there are any reason to include the
component/tag on my page?
In my example, I have an web wizard, that shows, step-by-step, some
fields in my page. I have a tr:tableLayout and the rendered attribute is
on tr:rowLayout, to show/hide the whole line,
Hi All... I'm fairly sure this should be possible, as it is with the
regular kupu editor. How can I change what buttons in the toolbar
of the inputHtml control in tomahawk are displayed?
Thanks!
Hi
I have done extensive testing with various versions of Tomcat, and MyFaces does
not work on anything above 5.5.17 running on Java 5 (On 1.4 it works). From
what I have seen, I think this may have something todo with locale. I have not
had the time yet to debug the startup, but I think that
Hi
Anyone know of a (Ajax) inputSuggest component that will take a URI as it's
source for for the suggested value. The Tomahawk component inputSuggestAjax
uses a bean method.
Hermod
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
This email with attachments is
Hi
Anything above 5.5.17 does not work (I have done a test on all 5.5.x).
Hermod
-Original Message-
From: Fletcher, Michael (Calgary) [mailto:[EMAIL PROTECTED]
Sent: Friday, May 04, 2007 6:42 PM
To: users@myfaces.apache.org
Subject: No Factories configured for this Application with
Hello,
I'm using multiple tr:selectOneChoice and tr:inputText components on one
page.
Only some of them should have an other background color.
If I put the inlineStyle=background-color:#00; attribute on the
component, the style get's rendered on an span tag surrounding the select.
Is
try styleClass attribute for both components like
styleClass=colorYellow
in css file
.colorYellow {
background-color:#00;
}
On 5/7/07, Döring Markus [EMAIL PROTECTED] wrote:
Hello,
I'm using multiple tr:selectOneChoice and tr:inputText components on
one page.
Only some of them should
Return an empty String ;
Glauco P. Gomes
Dave escreveu:
HI Omidh,
Thanks for help.
I used h:outputText to trigger the code to add javascript. If the
method returns work done, it would show up on page.
Dave
*/omidh [EMAIL PROTECTED]/* wrote:
Try to return a String...
public
Hi,
I have some problems with the position of t:popups on screen.
The sensitive areas over that the popups should appear are inside a
s:layoutingSplitPane on the right side. This leads to misplaced popups,
because the popups appear not directly over the area but (much to far) on
the right side
Hello,
Have you tried the ::content sub-selector? Like af|selectOneChoice::content
?
Regards,
~ Simon
On 5/7/07, Ayhan Güngör [EMAIL PROTECTED] wrote:
try styleClass attribute for both components like
styleClass=colorYellow
in css file
.colorYellow {
background-color:#00;
}
On
I suppose it should indeed work inside of a column, but it isn't.
I've tried with a detailStamp like this:
tr:table value=#{fichaOperadorBean.attributes} var=attribute
tr:column
tr:outputText value=#{attribute.xnomatrb}/
/tr:column
f:facet name=detailStamp
Omid.. The link must be absolute. You can't just send a file located
in a backing bean directly to the browser. The url needs to be a web
resource and a backing bean is part of the model layer of Faces MVC
Architecture. My advice is to create a servlet whose job it is to
stream the file to
Bruno,
Your correct in the fact that rendered=false is useless. However, that
is not how it's typically used. Typically this will be bound to a
backing bean which will allow you to turn the component on/off. You
should use a hidden input field and a switcher if you need to keep the
value
The only obvious problem there is that f:facet doesn't support
rendered - Facelets should be complaining. You have to put
rendered on the table, not the facet.
-- Adam
On 5/7/07, Francisco Passos [EMAIL PROTECTED] wrote:
I suppose it should indeed work inside of a column, but it isn't.
I've
We'd love to have support contributed. The key class
is org.apache.myfaces.trinidadinternal.facelets.TrinidadComponentHandler,
which needs a new rule added for these two properties (labelAndAccessKey,
textAndAccessKey).
-- Adam
On 5/7/07, Michael Trompertz [EMAIL PROTECTED] wrote:
Is this
After moving rendered from f:facet to tr:table, the error remains the
same, it complains that the facet can only have one child. What could cause
this?
On 5/7/07, Adam Winer [EMAIL PROTECTED] wrote:
The only obvious problem there is that f:facet doesn't support
rendered - Facelets should be
Don't know. I'd ask on the facelets list. Do you happen
to have any comments inside the facet, or have you
e-mailed the exact XML content you're using?
-- Adam
On 5/7/07, Francisco Passos [EMAIL PROTECTED] wrote:
After moving rendered from f:facet to tr:table, the error remains the
same, it
Hello,
Is there any chance that the facet in error is not that one? Because it
should work.
On 5/7/07, Francisco Passos [EMAIL PROTECTED] wrote:
After moving rendered from f:facet to tr:table, the error remains the
same, it complains that the facet can only have one child. What could cause
Also, when you said that table-in-table doesn't work,
what do you mean? What exactly isn't working?
I suspect that your original problem was that the
Trinidad table does not support rendered being bound
per-row on a column. Columns are either entirely
rendered or entirely hidden.
tr:table
This was it! :)
When I said it didn't work, I meant that the inner table did not render.
However, after moving the rendered attribute from the tr:column to the
inner tr:table, it works fine.
Thanks for helping me with this problem.
Francisco Passos
On 5/7/07, Adam Winer [EMAIL PROTECTED]
I tried, but still got the same exception. Any difference between return null
and return empty string for outputText? Any helps are appreciated.
java.lang.ClassCastException:
org.apache.myfaces.renderkit.html.util.DefaultAddResource$InlineScriptPositionedInfo
at
I get an error when trying to view my facelet (xhtml) sites (with tomahawk).
I tried to debug a the whole thing but all I found out is that within
com.sun.facelets.compiler.TagLibraryConfig.loadImplicit(...) the classpath
search does not return any url (although the jsf-faceletes.jar is seems to
Hi Udo,
Thnx for the response..
Its working fine now..
--
Regards,
Madan N
Hello there.
Please bear with me in this description.
I'm trying to get my request-scoped beans to be initialized (fetch stuff
from database, etc.) whenever they do not originate from a postback (and
keeping the state during postbacks using t:saveState). I've implemented a
PhaseListener which
Hello Francisco,
You could implement your own VariableResolver using decorator pattern
delegating to the original resolver then initializing the bean if your
condition is true. The code would look as follow:
public Object resolveVariable(FacesContext context, String name) {
Object o =
Gerald Müllan wrote:
No, if you are working with the daily builds you got at least the
newest one.
The null-reference is really strange since filteringTable itself seems
to work and it already uses the dojo.widget namespace.
Can you try to have a look into firebug or some other js-debugger,
I have found the problem in Tomcat's code. It all reduced to a problem
with spaces and %20's. You can read more about it below if you like.
My next question is how should I send this problem to the Tomcat guys.
Are there any on this list? I could either create a bug or submit it to
the devel
Your reply encouraged me to try a hack solution.
I've managed to successfully test the PPR panelPageRoot and poll components
with following browsers:
Opera 8.54 Windows Desktop
userAgent string Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; nb)
Opera 8.54
Opera 9.20, Windows Desktop
Thank you so much Andrew. Based on your recommendation i tried something like
this which results in NullPointerException.
public List getManufacturerList()
{
Map reqMap =
FacesContext.getCurrentInstance().getExternalContext().getRequestMap();
// Note : I am not able to get DefaultContext as
Hi *,
for those of you who are at J1: anyone interested in going for a beer
after Manfred, Matthias, Dennis and my BOF wednesday at 8:55 pm,
Esplanade 305?
We'd meet up after the end of the BOF (will be around 10:00pm), and
then go for a beer somewhere closeby.
Cu there!
regards,
Martin
--
Oh my, I tried to switch from ADF faces to Trinidad, but so very many
small things are broken now.
Here are a couple of issues concerning one of my tables:
* width attribute on column is ignored: My table now is about two times
my monitor width (at 1900 pixel display resolution).
*
* validateDoubleRange now requires minimum and maximum attributes, else
I get a client side validation error like 45 is larger than null.
In ADF Faces I simply used af:validateDoubleRange/ to ensure it is
a double at all.
just fixed it
* The client side validation fails for
50 matches
Mail list logo