You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Paolo <ir...@gmail.com> on 2010/11/14 15:12:39 UTC

ERROR: exceded the 65,535 byte limit Please Help me!

I use Eclipse Europe and Wicket 1.4.10
I am newbie. I am try to make a ecommerce web site.
I follow the example Cheese Shop in "Wicket in Action" manual.
I put the products database in memory in a ArrayList in MainApplication.
I works all ok, until the database was small. Now it include about 1000 products,
so I had this error: ...exceded the 65,535 byte limit

I found in google search some solution as to put the database in an external text file with fields divided with semicolon ; 
like .csv files
and read it from java class.
One line for every product, and 32 fields of Strings, like I declared in Class C:
....
public class C implements Serializable {
private String cat1;
private String art;
private String cat2;
private String cat3;
....
public C(String cat1, String art, String cat2, String cat3, String cat4, String cat5, String cat6, String cat7, String cat8, String cat9, String cat10, String descr_it, String descr_en, String nota_it, String nota_en, String Ricerca, String nfoto, String multi, String disp, String codprezzi, String prezzopub, String prezzoriv, String prezzoacq, String peso, String fornitore, String noteotty, String agg1, String agg2, String agg3, String agg4, String agg5, String quantita) {
 super();
 this.cat1 = cat1;
 this.art  = art;
 this.cat2 = cat2;
 .....


So to implement it to my wicket MainApplication before to read from external file, I am starting to convert source from this:

public class MainApplication extends WebApplication {
private List<C> cheeses = Arrays.asList(
		new C("BBTAA","001","","","","","","","","","","Portafotografia argento","","","","","","","","","19.00","","","1000","ard","verif","","","","","","0"),
		new C("BBTAA","002","","","","","","","","","","Serie sacchetti in azzurro","","","","","","","","","15.00","","","1000","ard","verif","","","","","",0),
		new C("BBTAA","003","","","","","","","","","","Serie sacchetti in rosa","","","","","","","","","10.00","","","1000","ard","verif","","","","","",0),
        new C(.................

To this:

public class MainApplication extends WebApplication {
private List<C> cheeses = new ArrayList<C>();
	  cheeses.add (new C("BBTAA","001","","","","","","","","","","Portafotografia argento","","","","","","","","","19.00","","","1000","ard","verif","","","","","","0"));

The last line (cheeses.add(...), give me this errors:
Multiple markers at this line
	- Syntax error on token "add", = expected after this token
	- Syntax error on token(s), misplaced construct(s)

Please Help me!

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


Re: ERROR: exceded the 65,535 byte limit Please Help me!

Posted by Sebastian <no...@gmx.net>.
Do yourself a favor and remove your product data from the class. If you 
insist on not using a DB, than use a CSV file and read the data from 
there via http://opencsv.sourceforge.net/

Regards,

Seb

On 14.11.2010 15:12, Paolo wrote:
> I use Eclipse Europe and Wicket 1.4.10
> I am newbie. I am try to make a ecommerce web site.
> I follow the example Cheese Shop in "Wicket in Action" manual.
> I put the products database in memory in a ArrayList in MainApplication.
> I works all ok, until the database was small. Now it include about 1000 products,
> so I had this error: ...exceded the 65,535 byte limit
>
> I found in google search some solution as to put the database in an external text file with fields divided with semicolon ;
> like .csv files
> and read it from java class.
> One line for every product, and 32 fields of Strings, like I declared in Class C:
> ....
> public class C implements Serializable {
> private String cat1;
> private String art;
> private String cat2;
> private String cat3;
> ....
> public C(String cat1, String art, String cat2, String cat3, String cat4, String cat5, String cat6, String cat7, String cat8, String cat9, String cat10, String descr_it, String descr_en, String nota_it, String nota_en, String Ricerca, String nfoto, String multi, String disp, String codprezzi, String prezzopub, String prezzoriv, String prezzoacq, String peso, String fornitore, String noteotty, String agg1, String agg2, String agg3, String agg4, String agg5, String quantita) {
>   super();
>   this.cat1 = cat1;
>   this.art  = art;
>   this.cat2 = cat2;
>   .....
>
>
> So to implement it to my wicket MainApplication before to read from external file, I am starting to convert source from this:
>
> public class MainApplication extends WebApplication {
> private List<C>  cheeses = Arrays.asList(
> 		new C("BBTAA","001","","","","","","","","","","Portafotografia argento","","","","","","","","","19.00","","","1000","ard","verif","","","","","","0"),
> 		new C("BBTAA","002","","","","","","","","","","Serie sacchetti in azzurro","","","","","","","","","15.00","","","1000","ard","verif","","","","","",0),
> 		new C("BBTAA","003","","","","","","","","","","Serie sacchetti in rosa","","","","","","","","","10.00","","","1000","ard","verif","","","","","",0),
>          new C(.................
>
> To this:
>
> public class MainApplication extends WebApplication {
> private List<C>  cheeses = new ArrayList<C>();
> 	  cheeses.add (new C("BBTAA","001","","","","","","","","","","Portafotografia argento","","","","","","","","","19.00","","","1000","ard","verif","","","","","","0"));
>
> The last line (cheeses.add(...), give me this errors:
> Multiple markers at this line
> 	- Syntax error on token "add", = expected after this token
> 	- Syntax error on token(s), misplaced construct(s)
>
> Please Help me!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>



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


Re: ERROR: exceded the 65,535 byte limit Please Help me!

Posted by Eelco Hillenius <ee...@gmail.com>.
Your source file is too big, good job ;-) For the rest, see the other
replies. Get your basics down first, or you're going to look at a very
painful few months. Maybe hire a consultant to get you up to speed and
help you with the core architecture?

Cheers,

Eelco

On Sun, Nov 14, 2010 at 6:12 AM, Paolo <ir...@gmail.com> wrote:
> I use Eclipse Europe and Wicket 1.4.10
> I am newbie. I am try to make a ecommerce web site.
> I follow the example Cheese Shop in "Wicket in Action" manual.
> I put the products database in memory in a ArrayList in MainApplication.
> I works all ok, until the database was small. Now it include about 1000 products,
> so I had this error: ...exceded the 65,535 byte limit
>
> I found in google search some solution as to put the database in an external text file with fields divided with semicolon ;
> like .csv files
> and read it from java class.
> One line for every product, and 32 fields of Strings, like I declared in Class C:
> ....
> public class C implements Serializable {
> private String cat1;
> private String art;
> private String cat2;
> private String cat3;
> ....
> public C(String cat1, String art, String cat2, String cat3, String cat4, String cat5, String cat6, String cat7, String cat8, String cat9, String cat10, String descr_it, String descr_en, String nota_it, String nota_en, String Ricerca, String nfoto, String multi, String disp, String codprezzi, String prezzopub, String prezzoriv, String prezzoacq, String peso, String fornitore, String noteotty, String agg1, String agg2, String agg3, String agg4, String agg5, String quantita) {
>  super();
>  this.cat1 = cat1;
>  this.art  = art;
>  this.cat2 = cat2;
>  .....
>
>
> So to implement it to my wicket MainApplication before to read from external file, I am starting to convert source from this:
>
> public class MainApplication extends WebApplication {
> private List<C> cheeses = Arrays.asList(
>                new C("BBTAA","001","","","","","","","","","","Portafotografia argento","","","","","","","","","19.00","","","1000","ard","verif","","","","","","0"),
>                new C("BBTAA","002","","","","","","","","","","Serie sacchetti in azzurro","","","","","","","","","15.00","","","1000","ard","verif","","","","","",0),
>                new C("BBTAA","003","","","","","","","","","","Serie sacchetti in rosa","","","","","","","","","10.00","","","1000","ard","verif","","","","","",0),
>        new C(.................
>
> To this:
>
> public class MainApplication extends WebApplication {
> private List<C> cheeses = new ArrayList<C>();
>          cheeses.add (new C("BBTAA","001","","","","","","","","","","Portafotografia argento","","","","","","","","","19.00","","","1000","ard","verif","","","","","","0"));
>
> The last line (cheeses.add(...), give me this errors:
> Multiple markers at this line
>        - Syntax error on token "add", = expected after this token
>        - Syntax error on token(s), misplaced construct(s)
>
> Please Help me!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


Re: ERROR: exceded the 65,535 byte limit Please Help me!

Posted by Jonathan Locke <jo...@gmail.com>.
You certainly do need to learn something about Java. But while you're doing
that, you also need to start learning how to think about coding. If you do
it by trial and error like this, it will take you years to learn something
you could learn in months.
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/ERROR-exceded-the-65-535-byte-limit-Please-Help-me-tp3041743p3041891.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: ERROR: exceded the 65,535 byte limit Please Help me!

Posted by James Carman <ja...@carmanconsulting.com>.
On Sun, Nov 14, 2010 at 11:49 AM, Paolo <ir...@gmail.com> wrote:
> It is all right.
> I have very small know about java bases.
> I don't know differents between Array.AsList and ArrayList.
>
> However, please help me about this error, or what I have to study or check:
> Multiple markers at this line
>        - Syntax error on token "add", = expected after this token
>        - Syntax error on token(s), misplaced construct(s)
>
> On thi part of code:
>
> public class MainApplication extends WebApplication {
> private List<C> cheeses = new ArrayList<C>();
>          cheeses.add (new
> C("BBTAA","001","","","","","","","","","","Portafotografia
> argento","","","","","","","","","19.00","","","1000","ard","verif","","","","","","0"));
>

This list isn't the correct forum for folks to ask questions on how to
solve compiler errors.  That's a "core" Java question.  I don't mind
helping you (I don't like turning away folks that ask for help), but
let's do it off-list.  The folks on this list are concerned with
Wicket-related questions, which this is not.

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


RE: ERROR: exceded the 65,535 byte limit Please Help me!

Posted by Vadim Tesis <va...@hotmail.com>.
you cannot call cheeses.add() where you do. do it in the constructor of MainApplication or some other method before cheeses is being used.

 
> From: irresistiblecam@gmail.com
> To: users@wicket.apache.org
> Subject: Re: ERROR: exceded the 65,535 byte limit Please Help me!
> Date: Sun, 14 Nov 2010 17:49:23 +0100
> 
> Alle domenica 14 novembre 2010, Jonathan Locke ha scritto:
> > 
> > Yes. Learning Java better would certainly help, but to me there's an even
> > deeper problem because what we're looking at is result-oriented coding...
> > and result-oriented coding is what gets you into this sort of mess. The way
> > out of that trap in general is to start working on and thinking about
> > *process*.
> > 
> > http://www.amazon.com/Coding-Software-Design-Process-ebook/dp/B0042X99SA
> > 
> > Jon
> It is all right.
> I have very small know about java bases.
> I don't know differents between Array.AsList and ArrayList.
> 
> However, please help me about this error, or what I have to study or check:
> Multiple markers at this line
> - Syntax error on token "add", = expected after this token
> - Syntax error on token(s), misplaced construct(s)
> 
> On thi part of code:
> 
> public class MainApplication extends WebApplication {
> private List<C> cheeses = new ArrayList<C>();
> cheeses.add (new 
> C("BBTAA","001","","","","","","","","","","Portafotografia 
> argento","","","","","","","","","19.00","","","1000","ard","verif","","","","","","0"));
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
 		 	   		  

Re: ERROR: exceded the 65,535 byte limit Please Help me!

Posted by Paolo <ir...@gmail.com>.
Alle domenica 14 novembre 2010, Jonathan Locke ha scritto:
> 
> Yes. Learning Java better would certainly help, but to me there's an even
> deeper problem because what we're looking at is result-oriented coding...
> and result-oriented coding is what gets you into this sort of mess. The way
> out of that trap in general is to start working on and thinking about
> *process*.
> 
> http://www.amazon.com/Coding-Software-Design-Process-ebook/dp/B0042X99SA
> 
>    Jon
It is all right.
I have very small know about java bases.
I don't know differents between Array.AsList and ArrayList.

However, please help me about this error, or what I have to study or check:
Multiple markers at this line
        - Syntax error on token "add", = expected after this token
        - Syntax error on token(s), misplaced construct(s)

On thi part of code:

public class MainApplication extends WebApplication {
private List<C> cheeses = new ArrayList<C>();
          cheeses.add (new 
C("BBTAA","001","","","","","","","","","","Portafotografia 
argento","","","","","","","","","19.00","","","1000","ard","verif","","","","","","0"));


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


Re: ERROR: exceded the 65,535 byte limit Please Help me!

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Hi!

Yeah.. Behaviour driven might help:

http://blog.dannorth.net/whats-in-a-story/
http://en.wikipedia.org/wiki/Behavior_Driven_Development
http://jbehave.org/
http://www.jdave.org/



But really.. you might benefit from rubbing shoulders with someone
with already some experience.

**
Martin


2010/11/14 Jonathan Locke <jo...@gmail.com>:
>
> In the end, the code above is some pretty horrific and very optional
> suffering.
>
> When I look at that code, I basically see a dislocated shoulder. A novice
> went to the gym and started trying to move the weights instead of exercise
> the muscle.
>
> Thinking in Java is a good book. No doubt about it. But to my taste, there
> is still a lot of "trying to move the weights" to it. There's too much about
> Java and not enough about thinking for a beginner.
>
> In the end, you don't need a book at all so much as you need to stop and
> REALLY, TRULY THINK about what you are doing and why. In my experience,
> very, very few people do this with any real regularity. In fact, it's not
> really a beginner problem. Even most of the very experience programmers I
> know don't do nearly enough of this. Particularly if what they are doing
> seems to be "working for them." But in the end, repeating what works is like
> moving the weights at the gym -- it's a trap and a good way to get injured
> -- and the only way out of that trap is to stay focused on incremental
> improvement of process. The master craftsman cares not so much about what is
> accomplished, but HOW it is accomplished.
>
> Truth is, you don't need my book. You can learn everything you need to know
> by reading this post a few times and taking it to heart. If you do, the
> shift in mind-set will be enormous. You will get stronger, much, much faster
> and you won't tear a rotator cuff like the guy above.
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/ERROR-exceded-the-65-535-byte-limit-Please-Help-me-tp3041743p3041888.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


Re: ERROR: exceded the 65,535 byte limit Please Help me!

Posted by Jonathan Locke <jo...@gmail.com>.
In the end, the code above is some pretty horrific and very optional
suffering.

When I look at that code, I basically see a dislocated shoulder. A novice
went to the gym and started trying to move the weights instead of exercise
the muscle. 

Thinking in Java is a good book. No doubt about it. But to my taste, there
is still a lot of "trying to move the weights" to it. There's too much about
Java and not enough about thinking for a beginner.

In the end, you don't need a book at all so much as you need to stop and
REALLY, TRULY THINK about what you are doing and why. In my experience,
very, very few people do this with any real regularity. In fact, it's not
really a beginner problem. Even most of the very experience programmers I
know don't do nearly enough of this. Particularly if what they are doing
seems to be "working for them." But in the end, repeating what works is like
moving the weights at the gym -- it's a trap and a good way to get injured
-- and the only way out of that trap is to stay focused on incremental
improvement of process. The master craftsman cares not so much about what is
accomplished, but HOW it is accomplished.

Truth is, you don't need my book. You can learn everything you need to know
by reading this post a few times and taking it to heart. If you do, the
shift in mind-set will be enormous. You will get stronger, much, much faster
and you won't tear a rotator cuff like the guy above.

-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/ERROR-exceded-the-65-535-byte-limit-Please-Help-me-tp3041743p3041888.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: ERROR: exceded the 65,535 byte limit Please Help me!

Posted by Jonathan Locke <jo...@gmail.com>.
*bows*
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/ERROR-exceded-the-65-535-byte-limit-Please-Help-me-tp3041743p3041843.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: ERROR: exceded the 65,535 byte limit Please Help me!

Posted by James Carman <ja...@carmanconsulting.com>.
Wow, what a shameless plug!  I love it!

On Sun, Nov 14, 2010 at 10:36 AM, Jonathan Locke
<jo...@gmail.com> wrote:
>
> Yes. Learning Java better would certainly help, but to me there's an even
> deeper problem because what we're looking at is result-oriented coding...
> and result-oriented coding is what gets you into this sort of mess. The way
> out of that trap in general is to start working on and thinking about
> *process*.
>
> http://www.amazon.com/Coding-Software-Design-Process-ebook/dp/B0042X99SA
>
>   Jon
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/ERROR-exceded-the-65-535-byte-limit-Please-Help-me-tp3041743p3041802.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


Re: ERROR: exceded the 65,535 byte limit Please Help me!

Posted by Jonathan Locke <jo...@gmail.com>.
Yes. Learning Java better would certainly help, but to me there's an even
deeper problem because what we're looking at is result-oriented coding...
and result-oriented coding is what gets you into this sort of mess. The way
out of that trap in general is to start working on and thinking about
*process*.

http://www.amazon.com/Coding-Software-Design-Process-ebook/dp/B0042X99SA

   Jon

-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/ERROR-exceded-the-65-535-byte-limit-Please-Help-me-tp3041743p3041802.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: ERROR: exceded the 65,535 byte limit Please Help me!

Posted by James Carman <ja...@carmanconsulting.com>.
It sounds like you probably need to crawl before you can walk here.
You really need to have a good grasp of the Java language before you
jump into building an e-commerce website with Wicket, IMHO.  Have you
looked into Thinking in Java or Head First Java?

On Sun, Nov 14, 2010 at 9:12 AM, Paolo <ir...@gmail.com> wrote:
> I use Eclipse Europe and Wicket 1.4.10
> I am newbie. I am try to make a ecommerce web site.
> I follow the example Cheese Shop in "Wicket in Action" manual.
> I put the products database in memory in a ArrayList in MainApplication.
> I works all ok, until the database was small. Now it include about 1000 products,
> so I had this error: ...exceded the 65,535 byte limit
>
> I found in google search some solution as to put the database in an external text file with fields divided with semicolon ;
> like .csv files
> and read it from java class.
> One line for every product, and 32 fields of Strings, like I declared in Class C:
> ....
> public class C implements Serializable {
> private String cat1;
> private String art;
> private String cat2;
> private String cat3;
> ....
> public C(String cat1, String art, String cat2, String cat3, String cat4, String cat5, String cat6, String cat7, String cat8, String cat9, String cat10, String descr_it, String descr_en, String nota_it, String nota_en, String Ricerca, String nfoto, String multi, String disp, String codprezzi, String prezzopub, String prezzoriv, String prezzoacq, String peso, String fornitore, String noteotty, String agg1, String agg2, String agg3, String agg4, String agg5, String quantita) {
>  super();
>  this.cat1 = cat1;
>  this.art  = art;
>  this.cat2 = cat2;
>  .....
>
>
> So to implement it to my wicket MainApplication before to read from external file, I am starting to convert source from this:
>
> public class MainApplication extends WebApplication {
> private List<C> cheeses = Arrays.asList(
>                new C("BBTAA","001","","","","","","","","","","Portafotografia argento","","","","","","","","","19.00","","","1000","ard","verif","","","","","","0"),
>                new C("BBTAA","002","","","","","","","","","","Serie sacchetti in azzurro","","","","","","","","","15.00","","","1000","ard","verif","","","","","",0),
>                new C("BBTAA","003","","","","","","","","","","Serie sacchetti in rosa","","","","","","","","","10.00","","","1000","ard","verif","","","","","",0),
>        new C(.................
>
> To this:
>
> public class MainApplication extends WebApplication {
> private List<C> cheeses = new ArrayList<C>();
>          cheeses.add (new C("BBTAA","001","","","","","","","","","","Portafotografia argento","","","","","","","","","19.00","","","1000","ard","verif","","","","","","0"));
>
> The last line (cheeses.add(...), give me this errors:
> Multiple markers at this line
>        - Syntax error on token "add", = expected after this token
>        - Syntax error on token(s), misplaced construct(s)
>
> Please Help me!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


Re: ERROR: exceded the 65,535 byte limit Please Help me!

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Hi!

Yes it might help putting the data into a data file.

Database yes, or csv file:
http://opencsv.sourceforge.net/

**
Martin

2010/11/14 Paolo <ir...@gmail.com>:
> I use Eclipse Europe and Wicket 1.4.10
> I am newbie. I am try to make a ecommerce web site.
> I follow the example Cheese Shop in "Wicket in Action" manual.
> I put the products database in memory in a ArrayList in MainApplication.
> I works all ok, until the database was small. Now it include about 1000 products,
> so I had this error: ...exceded the 65,535 byte limit
>
> I found in google search some solution as to put the database in an external text file with fields divided with semicolon ;
> like .csv files
> and read it from java class.
> One line for every product, and 32 fields of Strings, like I declared in Class C:
> ....
> public class C implements Serializable {
> private String cat1;
> private String art;
> private String cat2;
> private String cat3;
> ....
> public C(String cat1, String art, String cat2, String cat3, String cat4, String cat5, String cat6, String cat7, String cat8, String cat9, String cat10, String descr_it, String descr_en, String nota_it, String nota_en, String Ricerca, String nfoto, String multi, String disp, String codprezzi, String prezzopub, String prezzoriv, String prezzoacq, String peso, String fornitore, String noteotty, String agg1, String agg2, String agg3, String agg4, String agg5, String quantita) {
>  super();
>  this.cat1 = cat1;
>  this.art  = art;
>  this.cat2 = cat2;
>  .....
>
>
> So to implement it to my wicket MainApplication before to read from external file, I am starting to convert source from this:
>
> public class MainApplication extends WebApplication {
> private List<C> cheeses = Arrays.asList(
>                new C("BBTAA","001","","","","","","","","","","Portafotografia argento","","","","","","","","","19.00","","","1000","ard","verif","","","","","","0"),
>                new C("BBTAA","002","","","","","","","","","","Serie sacchetti in azzurro","","","","","","","","","15.00","","","1000","ard","verif","","","","","",0),
>                new C("BBTAA","003","","","","","","","","","","Serie sacchetti in rosa","","","","","","","","","10.00","","","1000","ard","verif","","","","","",0),
>        new C(.................
>
> To this:
>
> public class MainApplication extends WebApplication {
> private List<C> cheeses = new ArrayList<C>();
>          cheeses.add (new C("BBTAA","001","","","","","","","","","","Portafotografia argento","","","","","","","","","19.00","","","1000","ard","verif","","","","","","0"));
>
> The last line (cheeses.add(...), give me this errors:
> Multiple markers at this line
>        - Syntax error on token "add", = expected after this token
>        - Syntax error on token(s), misplaced construct(s)
>
> Please Help me!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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