RE: PDF viewed in panel via ResourceReference works in 6.12 but not in 6.13

2015-03-13 Thread reiern70
Passing something that allows you to produce the byte []?


Sent from Samsung Mobile

 Original message 
From: Bruce Lombardi  
Date:13/03/2015  20:20  (GMT+01:00) 
To: users@wicket.apache.org 
Subject: RE: PDF viewed in panel via ResourceReference works in 6.12 but not in 
6.13 

Thanks Ernesto,

I don't know how to pass a byte[] as a parameter.

Bruce

-Original Message-
From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] 
Sent: Friday, March 13, 2015 2:20 PM
To: users@wicket.apache.org
Subject: Re: PDF viewed in panel via ResourceReference works in 6.12 but not in 
6.13

Pass the info as parameters on the request to the mounted resource?

On Fri, Mar 13, 2015 at 7:15 PM, Bruce Lombardi  wrote:

> Martin,
>
> I'm looking into mounting the resource but there is something that I 
> don't understand.
> Currently I am creating the resource in my panel and passing the pdf I 
> want to display into the constructor of the resource. If I mount the 
> resource, how do I provide it with the dynamically generated pdf? I 
> don't even see a way of getting a hold of the resourceReference object 
> created and mounted in the  WebApplication init() method. Perhaps I 
> need to also register it as an application-shared resource, then 
> access it in my panel constructor and add the pdf there?
>
> Bruce
>
> -Original Message-
> From: Martin Grigorov [mailto:mgrigo...@apache.org]
> Sent: Friday, March 13, 2015 12:53 PM
> To: users@wicket.apache.org
> Subject: Re: PDF viewed in panel via ResourceReference works in 6.12 
> but not in 6.13
>
> Hi,
>
> I think I see what happens.
> The ResRef is created as a local variable to create the url and then 
> discarded.
> Wicket has something called ResourceReferenceRegistry. When a ResRef 
> is used to create an url to it it is automatically registered in the registry.
> It seems after 6.13 there is no such auto-registration for your ResRef 
> for some reason.
> You should have some WARNs in the logs.
>
> I see nothing component specific in your ResRef so I'd #mountResource() it.
> This way it will be always available.
>
>
> Martin Grigorov
> Freelancer, available for hire!
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Fri, Mar 13, 2015 at 6:40 PM, Bruce Lombardi 
> wrote:
>
> > I have a PdfViewer page that contains a panel that displays a 
> > dynamically generated PDF using a resource reference. This works 
> > fine in Wicket 6.12.0, but when I upgrade to 6.13.0 it stops working 
> > (just changed Maven dependency
> > - no code changes). No errors are displayed and the html is 
> > generated exactly as it is with 6.12, but the pdf does not show up in the 
> > page.
> >
> > By setting a breakpoint in Eclipse I have determined that code in 
> > the resource that produces the response (newResourceResponse) is 
> > never called in 6.13. After migrating to the latest version (6.19) I 
> > still get the problem.
> > I've looked at the release notes for version 6.13 and see some 
> > changes related to IResource but nothing that looks related to this problem.
> >
> > I'm hoping someone has seen something similar. Here is some of the 
> > relevant
> > code:
> >
> > PdfViewer .html - just has reference to panel
> >
> >    
> >
> >
> >
> > PdfPane.html - just has object reference
> >
> > Raw HTML
> >
> >     > height="80%">
> >
> >
> >
> > Generated HTML - seen with view source in browser
> >
> >  data="./resource/org.apache.wicket.Application/pdfProducer"
> >
> >    border="1" width="80%" height="80%">
> >
> >
> >
> > PdfPanel.java - has setup for resource reference
> >
> > public class PdfPanel extends Panel {
> >
> >
> >
> >    private static final long serialVersionUID = 1L;
> >
> >
> >
> >    public PdfPanel(String id) {
> >
> >   super(id);
> >
> >
> >
> >   ResourceReference resourceReference = new 
> > ResourceReference(
> >
> >    "pdfProducer") {
> >
> >  private static final long serialVersionUID = 
> > 1L;
> >
> >
> >
> >  @Override
> >
> >  public IResource getResource() {
> >
> >    WebDocsSession session = 
> > (WebDocsSession)getSession();
> >
> >
> >
> >    final byte[] pdf = session.getPdf();
> >
> >
> >
> >    if(pdf == null)
> >
> > System.out.println("PdfPanel session.getPdf returned null");
> >
> >
> >
> > PdfResourceProducer pdfResourceProducer =
> >
> > new PdfResourceProducer(pdf);
> >
> >
> >
> >    return pdfResourceProducer;
> >
> >  }
> >
> >   };
> >
> >
> >
> > String url =
> > (String)RequestCycle.get().urlFor(resourceReference,
> > null);
> >
> >
> >
> > MarkupContainer wmc = new WebMarkupContainer("pdf");
> >
> > wmc.add(new AttributeModifier("data", url));
> >
> > add(wmc);
> >
> >    }

Re: icons as checkboxes

2010-03-11 Thread reiern70

Hi Eyal,

I do something similar  here

http://code.google.com/p/antilia/source/browse/trunk/com.antilia.web/src/com/antilia/web/beantable/ToggleSelectRowButton.java

It is just a Panel with and AjaxLink and an image. When user click link a
round-trip to the server toggles boolean state and redisplays the panel
changing the image accordingly (selected or un-selected). Feel free to reuse
the code or adapt it if it suits your needs.

Best,

Ernesto


egolan74 wrote:
> 
> Hi,
> How can I make a Component to act as a checkbox, but to show an icon
> instead?
> 
> I want to show an icon (image) when not selected, and if the user clicks
> on
> it, it will be selected => selected icon.
> The model to use is a Boolean.
> 
> I guess this is easy, but please provide some code / explanation.
> 
> Thanks,
> 
> 
> Eyal Golan
> egola...@gmail.com
> 
> Visit: http://jvdrums.sourceforge.net/
> LinkedIn: http://www.linkedin.com/in/egolan74
> 
> P  Save a tree. Please don't print this e-mail unless it's really
> necessary
> 
> 
> -
> Eyal Golan
> egola...@gmail.com
> 
> Visit: JVDrums 
> LinkedIn: LinkedIn 
> 

-- 
View this message in context: 
http://old.nabble.com/icons-as-checkboxes-tp27861120p27861503.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Modal window shows raw HTML content

2009-08-20 Thread reiern70

Maybe label.setEscapeModelStrings(boolean value)?


Jade-9 wrote:
> 
> Hi,
> 
>  I am trying to add a HTML content into the modal window as string(within
> a
> label component).
> 
>  And, its getting added as raw HTML content. Is it usually that way or am
> I
> doing something wrong? Please clarify.
> 
> Thanks,
> J
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Modal-window-shows-raw-HTML-content-tp25060031p25060219.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Problems with session after modifying code

2009-08-11 Thread reiern70

Maybe invalidate the HTTP sessions? So, that users will have to log-in again. 

Can you post a stack trace of the error you get? I remember having "similar"
class cast exceptions because OSGi class loading, but they all banished
after using the buddy class loading of equinox... But maybe your problem is
something different...

Best,

Ernesto


Daniel Dominik Holúbek wrote:
> 
> Ok,i've found out that i need to delete the JSESSIONID cookie after
> refreshing bundles.
> is there any way to do that programatically?
> 
> thx
> 
> On Mon, Aug 10, 2009 at 5:40 PM, Daniel Dominik Holúbek <
> dankodo...@gmail.com> wrote:
> 
>> Hello,i'm developing a webapp combining osgi (equinox) and wicket.
>> it works fine, except of this case:
>> let's say we've got two bundles - "core" and "chat".
>> the "chat" bundle depends on "core" bundle.
>> now, i've made some modifications to the "chat" bundle, exported it and
>> deployed it to osgi container, leaving the "core" bundle unchanged.
>> because i need the changes to be seen by the "core", i have to refresh
>> it.
>>
>> and here is the problem. when i now access the webapp, i get an exception
>> which says - MySession can not be cast to org.apache.wicket.Session.
>> i think the problem is that the old session, containing old classes (in
>> some Page store maybe? i'm still a newbie :)) is saved to disk before
>> actually refreshing core classes and then loaded again - but confliting
>> with
>> new, freshly loaded classes.
>> the exception goes away and webapp loads correctly after i restart my
>> browser :)
>>
>> so my question is: do you know about some workaround for this problem?
>> the
>> best scenario would be that the Session will load correctly, but it's not
>> necessary - it can be dropped.
>>
>> i know there's a lot of osgi, but i think this is a wicket problem - but
>> correct me if i'm mistaken. :)
>>
>> thanks for your answers!
>>
>> --
>> -danoh-
>>
> 
> 
> 
> -- 
> -danoh-
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problems-with-session-after-modifying-code-tp24902109p24915768.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: calendar component with date & TIME field

2009-05-07 Thread reiern70

Maybe 

org.apache.wicket.extensions.yui.calendar.DateTimeField

Best,

Ernesto
 

Christoph Grün wrote:
> 
> Hi!
> 
>  
> 
> Is there a calendar component with date & TIME field?
> 
> The calendar components, that I know so far (e.g., YUI DatePicker) just
> provide a date field. I also would need a field for hours/minutes.
> 
> Instead of adding textfields for hours/minutes seperately, it would be
> nice
> to have them included in the calendar component.
> 
>  
> 
> Thanks, 
> 
> Christoph
> 
>  
> 
>  
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/calendar-component-with-date---TIME-field-tp23422189p23428506.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to get an i18n message?

2009-04-27 Thread reiern70

Maybe Component.getString(...);

Ernesto


HHB wrote:
> 
> Hey,
> How to get a message (that will be displayed in FeedbackPanel) from
> properties
> file in order to use it for info() method of Component class?
> Thanks.
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-get-an-i18n-message--tp23257589p23258193.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Plugin panel integration

2009-04-21 Thread reiern70

Then probably you need something as OSGi which allows you to dynamically
add/remove features to an existing application. There are numerous threads
in this list dealing with OSGi and Wicket.

Ernesto


TradeMark wrote:
> 
> Thx for reply,
> 
> Im building modular application which functionality is implemented by 
> adding pannels. The application itself is responsible only for 
> displaying these panels. The question here is that if application is 
> ruuning on server and someone creates a new plugin (new panel). Is it 
> possible to somehow add it to running application or is it necessary to 
> rebuild the application?
> 
> tm
> 
> Liam Clarke-Hutchinson  wrote / napísal(a):
>> I'm not sure I understand fully, are these optional plugins from a
>> third party that you need to use?
>>
>> If not, if they're just components you're coding yourself to use on
>> your own pages then they should be included in the WAR file by your
>> build script.
>>
>> Regards,
>>
>> Liam Clarke
>>
>> On 4/21/09, Tomáš Mihok  wrote:
>>   
>>> Hello,
>>>
>>> I'm currently developing a wicket application and I would like to ask a
>>> question. Someone in this mailing list advised me to create plugins to
>>> my page as panels. Question here is: What form should these be saved as?
>>>
>>> Thing I cannot understand is how the page handles them. Should they be
>>> saved as WAR archive? Does the server deploy them automatically?
>>>
>>> Thank you for answers, this is the first time Im using wicket for
>>> creating modular application and Im trying to find the right way to do
>>> it. If anyone has any material about this topic I would be more than
>>> grateful for it.
>>>
>>> Tom Mihok
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>> 
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>   
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Plugin-panel-integration-tp23153051p23154656.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Display other page in panel

2009-04-06 Thread reiern70

I would use a panel (as Igor already suggested) but in case you decide to use
a Page there is already an 

org.apache.wicket.markup.html.link.InlineFrame 

class that can be handy.

Ernesto


TradeMark wrote:
> 
> Hi there,
> 
> -i would like to ask whether it is possible to display other page in
> panel of my page. I made a web application and a friend of mine made a
> "plugin". We both created it same way - Maven & Wicket. The thing is
> that I would like to allow control of his page through my page. So the
> question is - can his page be displayed in a panel so that user could
> control it and if not, is there other way to accomplish this? (frames?)
> 
> Tomas Mihok
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Display-other-page-in-panel-tp22892570p22904246.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Extensible wicket application

2009-03-26 Thread reiern70

Can you provide an stack trace or some more info? Is this happening when you
run your application in eclipse or just on the bridge setting? Right now I'm
using hibernate+OSGi on some project and it works just fine... provided
Hibernate can load you entity classes by name.
 
Best,

Ernesto


Daniel Dominik Holúbek wrote:
> 
> Hi,
> I'm still trying to solve the database problem...
> I think it could be useful to mention, that I get an exception at these
> lines:
> 
> HibernateTemplate ht = new HibernateTemplate(sessionFactory);
> ht.save(msg); <-- HERE!
> 
> and if I change the code to this:
> 
> Session session = sessionFactory.openSession();
>  session.getTransaction().begin();
>  session.save(msg);
>  session.getTransaction().commit(); <-- HERE!
> 
> I have read something regarding OSGi having problems with Session - isn't
> this exactly that problem?
> 
> Thanks! :)
> 
> On Sun, Mar 22, 2009 at 2:10 AM, Brill Pappin  wrote:
> 
>> I'm assuming your using the 1.4 snapshot...
>>
>> I think that images will be relative to the component (or at least one if
>> them up the tree).
>>
>> The image component uses a resource that will use the arc attribute to
>> look
>> for the images, so if the arc attribute is bogus, then one of the other
>> methods of locating it better be correct.
>>
>> - Brill Pappin
>>  Sent from my mobile.
>>
>>
>> On 21-Mar-09, at 5:29 PM, Daniel Dominik Holúbek 
>> wrote:
>>
>>  Ernesto, thank you very much :)
>>> If my application ever goes to the production, it will be thanks to you
>>> :)
>>>
>>> Regarding the images problem: I think I did not explain it well. I'm not
>>> asking where to place them. I placed them almost everywhere, but I still
>>> can't access them - in the bundle. You see, I have an "images"
>>> directory,
>>> and in HTML files, I am accessing them as "img src="images/blah.jpg",
>>> but
>>> I
>>> still can't get this working. I am expecting only a hint - how are you
>>> doing
>>> this?
>>>
>>> And the database problem - I have the same application deployed as
>>> standard
>>> webapp, and there it works. I only wanted to know if it isn't some
>>> specific
>>> Wicket-Hibernate-OSGi problem you might have solved before :)
>>>
>>> But thank you all again!
>>>
>>> On Sat, Mar 21, 2009 at 6:06 PM, Brill Pappin  wrote:
>>>
>>>  Yah, the whole argument about where the resources should go or the one
 before that about top posting or bottom posting.
 You'd think we didn't have any actual work to do :)

 - Brill


 On 21-Mar-09, at 12:39 PM, Ernesto Reinaldo Barreiro wrote:

 useless thread?

>
> On Sat, Mar 21, 2009 at 4:17 PM, Brill Pappin  wrote:
>
> At the risk of starting another useless thread, this is what I do for
>
>> images and other non HTML resources that are shared:
>> - if the project is small, they can just sit with the HTML.
>> - if the project is larger then it might be useful to keep them more
>> separate, under an images directory and use the base page to ref them
>> or
>> even create a loader to manage them.
>>
>> Ether way, you use them the same way, only prefix the resource name
>> with
>> the subdir if you have separated them out.
>>
>> As for your db error, that looks like something out side the scope of
>> wicket.
>>
>> - Brill Pappin
>> Sent from my mobile.
>>
>>
>>
>> On 21-Mar-09, at 9:38 AM, Daniel Dominik Holúbek > m>
>> wrote:
>>
>> Thanks a lot, it works now.
>>
>>  However, two more questions. Where should I place images folder and
>>> how
>>> should I access it in my html files (or style.css as well)?
>>> And the second one: when i try to insert a record with hibernate
>>> into
>>> my
>>> database, i get this exception:
>>>
>>> Batch entry 0 insert into forum.anim_forum (autor, email, title,
>>> text,
>>> datum, ip, id) values (...) was aborted.
>>>
>>> and
>>>
>>> org.hibernate.exception.DataException: Could not execute JDBC batch
>>> update
>>>
>>> Could you (or possibly anyone else) help me with this? :)
>>> Thanks!
>>>
>>> On Fri, Mar 20, 2009 at 10:27 PM, Ernesto Reinaldo Barreiro <
>>> reier...@gmail.com> wrote:
>>>
>>> One more thing. As far as I remember the servlet bridge makes a
>>> 'work
>>>
>>>  copy'
 of the plugins folder if you see you make changes, export the
 plugins,
 and
 changes do not 'propagate' to the application, try deleting
 works/Catalina
 folder.

 On Fri, Mar 20, 2009 at 9:58 PM, Ernesto Reinaldo Barreiro <
 reier...@gmail.com> wrote:

 Hi Daniel,


> I found some time to get it working! The key to the problem was
>
>
>
>
>
>
 http://dev.eclipse.org/newslis

Re: Wicket serialization problems for OSGi users

2009-03-23 Thread reiern70

Hi David,

Thank for your answer! Yes, your are right buddy class loading is Equinox
proprietary. For me that's not a problem because I tied myself to use
equinox. I did so because if you want to deploy in a traditional application
sever you will have to use a bridge approach and equinox already provide
that bridge. I though the standard already provided a something similar to
buddy class-loading  (dynamic imports?), or at least that was the answer
some-one gave to me on the equinox list. I haven't had the time to check the
details myself. For me, buddy-class loading works just fine and I didn't
bother too much with the philosophical  implications of this. I also need
the same trick for things like loading entities, quartz jobs, etc.

Cheers,

Ernesto


David Leangen-8 wrote:
> 
> 
> Hi Ernesto,
> 
> Thanks.
> 
>> Just one question why not use buddy class-loading techniques to  
>> "solve" serialization problem?
> 
> Simple: at least for now, this is a non-standard extension for Eclipse/ 
> Equinox. :-)
> 
> I am aware of some proposals to modify the OSGi spec, but as far as I  
> know, that's not getting anywhere yet. In any case, I am still  
> pondering over whether or not the framework should even directly  
> serialize those private classes... Haven't yet come to any conclusions.
> 
> 
> Cheers,
> =David
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-serialization-problems-for-OSGi-users-tp22653816p22657119.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket serialization problems for OSGi users

2009-03-23 Thread reiern70

Hi David,
 
Nice post! Just one question why not use buddy class-loading techniques to
"solve" serialization problem? To me this is the same kind of problem you
encounter when you have a basic bundle handling Hibernate persistence and
you want Hibernate to load classes from a bundle containing your entities.
Or am I missing something?

Best,

Ernesto


David Leangen-8 wrote:
> 
> 
> I know there have been a few people inquiring about this from time to
> time.
> 
> I write about my experiences here, in the hope that this is helpful:
> 
>   http://bioscene.blogspot.com/2009/03/serialization-in-osgi.html
> 
> 
> 
> Cheers,
> =David
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-serialization-problems-for-OSGi-users-tp22653816p22655758.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Example for presenting pdf in modal window

2009-01-28 Thread reiern70

Hi Per,

I don't think you could use InlineFrame class to show a PDF in an iframe. I
just built a DocumentInlineFrame class, inspired on InlineFrame, that allows
to render a Resource (see attached files). To view the example all you have
to do is:

1- 
2- add(new MyPdfPanel("pdfpanel"));
3- and drop a pdf file test.pdf on the same package as class MyPdfResource. 

Hope this example is of some help. Maybe the class DocumentInlineFrame.java,
or some improved version of it, can be included  as part of wicket
distribution?

Best,

Ernesto

References

http://www.nabble.com/file/p21704182/MyPdfResource.java MyPdfResource.java 
http://www.nabble.com/file/p21704182/MyPdfPanel.html MyPdfPanel.html 
http://www.nabble.com/file/p21704182/MyPdfPanel.java MyPdfPanel.java 
http://www.nabble.com/file/p21704182/DocumentInlineFrame.java
DocumentInlineFrame.java 


Newgro wrote:
> 
> And how should i add the pdf?
> Page.add(InlineFrame.add(???));
> 
> That is exactly hte problem i can't get over.
> 
> Thanks for helping me
> Per
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Example-for-presenting-pdf-in-modal-window-tp21666757p21704182.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: anyone has some suggestion? thanks a lot

2009-01-06 Thread reiern70

The first time I saw snow I was 29 years old... So, I was implicitly
following your suggestion most of my life:-). I always found this
answer/suggestion, given by Elvis Presley, rather interesting:

“Why buy a cow when you can get milk through a fence?”
 

Jeremy Thomerson-5 wrote:
> 
> I always found the suggestion "don't eat yellow snow" to hold true.  Any
> specific topic you were thinking of?  :)
> 
> On Tue, Jan 6, 2009 at 7:59 PM, John Krasnay  wrote:
> 
>> Buy low, sell high?
>>
>> jk
>>
>> On Tue, Jan 06, 2009 at 05:55:08PM -0800, wch2001 wrote:
>> >
>> >
>> > --
>> > View this message in context:
>> http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21323395.html
>> > Sent from the Wicket - User mailing list archive at Nabble.com.
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21325383.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: DownloadLink, BIRT report

2009-01-01 Thread reiern70

Another thing: if your excel is not very complex you could also consider
using [1] to generate it.

Best,

Ernesto

1-http://jexcelapi.sourceforge.net/



newbieabc wrote:
> 
> The generation of the excel report.
> I am really new to BIRT and wicket..
> I've created the BIRT report (report.rptdesign)(in eclipse) but need it to
> be output as xls.
> I'd really appreciate some help. 
> Thank you
> 
> 
> reiern70 wrote:
>> 
>> Sure you can... Which part is giving you problems? The generation of the
>> excel report with BIRT? Or the creation of the link?
>> 
>> Best,
>> 
>> Ernesto
>> 
>> newbieabc wrote:
>>> Hello..
>>> How can create a download link on a webpage, that converts a BIRT report
>>> to
>>> excel format and downloads to client machine?
>>>
>>> Thank you.
>>>   
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/DownloadLink%2C-BIRT-report-tp21218997p21240273.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: DownloadLink, BIRT report

2008-12-31 Thread reiern70
 Iterator it = 
(Iterator)parametros_Reporte.keys(); 
while(it.hasNext()) {
String param = it.next();
try {
// first try to handle the parameter as 
multivalued.
JSONArray array = 
parametros_Reporte.getJSONArray(param);
Object[] values = new 
Object[]{array.length()};
for(int i=0; i < array.length(); i++) {
try {
values[i] = 
array.get(i);
} catch (Exception e) {
values[i] = null;
}
}
renderTask.setParameterValue(param, 
values);
} catch (Exception e) {
// if parameter is not multi-valued 
then treat it as single-valued.
String value = 
parametros_Reporte.getString(param); 
renderTask.setParameterValue(param, 
value);
}   
}
}
opcRend.setOutputStream(out);   
renderTask.setLocale(locale);
renderTask.setRenderOption(opcRend);
renderTask.run();
}
.

}

This class initializes a singleton BIRT runtime and the
generateBirtReport(...) method can be used to read the report design from a
database and generate the corresponding report (PDF, excel, HTML).  If you
filter out the logic that is specific to my use case you can easily build
your own machinery for building reports based on code given above.

As for the generation of the download link there should be plenty of
examples and/or related threads in this list... 

Best,

Ernesto







newbieabc wrote:
> 
> The generation of the excel report.
> I am really new to BIRT and wicket..
> I've created the BIRT report (report.rptdesign)(in eclipse) but need it to
> be output as xls.
> I'd really appreciate some help. 
> Thank you
> 
> 
> reiern70 wrote:
>> 
>> Sure you can... Which part is giving you problems? The generation of the
>> excel report with BIRT? Or the creation of the link?
>> 
>> Best,
>> 
>> Ernesto
>> 
>> newbieabc wrote:
>>> Hello..
>>> How can create a download link on a webpage, that converts a BIRT report
>>> to
>>> excel format and downloads to client machine?
>>>
>>> Thank you.
>>>   
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/DownloadLink%2C-BIRT-report-tp21218997p21238208.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: updating text in labels using ajax?

2008-12-18 Thread reiern70

Hi Lizz,

You could use an AjaxSelfUpdatingTimerBehavior to make the label (or some
component containing the label) update itself and when the "job" is finished
redirect to other page. I use a similar approach when I generate files. The
result looks like:

http://www.nabble.com/file/p21073112/progress.jpg 

I do not redirect to other page but I don't see why that should work as
well..

Best,

Ernesto

 

lizz wrote:
> 
> But the problem is that the user shouldnt have to press any button to
> update the labels... 
> 
> 
> Michael Sparer wrote:
>> 
>> Sure, 
>> 
>> use a simple Label and an AjaxButton, set setOutputMarkupId = true on the
>> label and add it in the onSubmit method to the ajaxrequesttarget
>> (target.addComponent(label)). 
>> But I'd also recommend taking a look at the Progressbar (search the
>> mailinglist) - that might suits you better
>> 
>> lizz wrote:
>>> 
>>> Hi,
>>> I need to add end user information (progress information) after submit
>>> button is pressed and before being redirected to a new page. I would
>>> like to add this information by updating some labels.
>>> When the user presses the submit button 4 web services are called before
>>> I am redirecting to a new page.
>>> Since each of these calls takes a long time I would like to change the
>>> text (progress info) in a label when each web service call is finished.
>>> (So that the user sees what happends.)
>>> 
>>> Is there a label with an ajax behevior that can be used?
>>> 
>>> Use case: 
>>> User presses the submit button
>>> web service method 1 is called
>>>when method 1 is finished i will update the text on a label
>>> component
>>> then web service method 2 is called
>>>when method 2 is finished i will update the text on the label
>>> etc etc
>>> when all web service methods are finished: setResponsePage - a new
>>> page
>>> 
>>> Any idea?
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/updating-text-in-labels-using-ajax--tp21072083p21073112.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Reporting Engine on Wicket 1.3.4

2008-09-09 Thread reiern70

Hi,

Actually there is no deed to have BIRT in a separated WAR: in our project we
have included it as a (singleton) runtime which is part of the application.
We also have some kind of WEB interface to manage report parameters... We
found BIRT quite useful  for generating reports thought we had some
problems when migrating to new versions (sometimes things that were working
perfectly with one version got terrible unfixed when moving to the next).
With BIRT you get "for free" the ability to produce Excel, Word, etc... 

In our project we went a bit further and built a machinery that allows to
combine BIRT (and non BIRT) PDF reports into books: BIRT reports are very
good in summarizing information but you are on your own when you have to
combine them... This "tool" allows you to build a tree like structure (a
book) where the nodes are BIRT reports. The  tool will help in collecting
all the bookmarks into a table of contents, generate combined bookmarks and
so on...

For simpler use cases I have used iText, JFreeChart, JExcelAPI, OpenCSV... 

Best,

Ernesto



egolan74 wrote:
> 
> Hi,
> We use BIRT as a report engine.
> A freelancer has created the prototype BIRT project, and now we took over
> it.
> 1. BIRT gives you all your needs.
> 2. I don't like it very much actually.
> 3. It is a different project than Wicket. (different WAR)
> 4. I plan to check how to integrate it to be in the same project / WAR of
> our main web application.
> 
> Our integration:
> We don't like the way BIRT implemented the parameters window so we wanted
> to
> make our own.
> We found out that it would be much easier to develop it with Wicket than
> to
> customize it in BIRT.
> So:
> 1. We have a page that has an IFrame (inline frame).
> 2. For each report (in the BIRT project) there's a Wicket's popup modal
> window to select parameters.
>  I am very happy with the module we built for that. It is very easy to
> create new parameters window.
> 3. When the user chooses the parameters and press OK, I set, using
> AttributeModifier, the src attribute of the inline frame.
> 4. It is all Ajax, so the inline frame is updated with the src, and the
> report is generated with the correct parameters..
> This module is VERY new in our project. I still have some bugs, but this
> is
> how we integrated BIRT and Wicket.
> 
> A question to you all:
> Has anyone worked with Wicket and BIRT?
> (funny, but I planned to ask this anyway)
> 
> Eyal
> 
> 
> On Mon, Sep 8, 2008 at 11:30 AM, Leon Nieuwoudt
> <[EMAIL PROTECTED]>wrote:
> 
>> Hi all
>>
>> I would like to know what kind of reporting engines are commonly used
>> for Wicket-based apps? We have the need to generate CSV, Excel, and
>> PDF files with graphs and pretty graphics.
>>
>> We've looked at the JasperReports integration but the docs say it's not
>> complete
>>
>> Thanks in advance
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Eyal Golan
> [EMAIL PROTECTED]
> 
> Visit: http://jvdrums.sourceforge.net/
> LinkedIn: http://www.linkedin.com/in/egolan74
> 
> P Save a tree. Please don't print this e-mail unless it's really necessary
> 
> 
> -
> Eyal Golan
> [EMAIL PROTECTED]
> 
> Visit: JVDrums 
> LinkedIn: LinkedIn 
> 

-- 
View this message in context: 
http://www.nabble.com/Reporting-Engine-on-Wicket-1.3.4-tp19367975p19390209.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]