Wilde's legal difficulties resulted from his relationship with Lord Alfred "Bosie" Douglas. Although readers of a later time often assume that Dorian is a projection of Wilde's troubled paramour, in reality Dorian was inspired by John Gray, a conflicted aesthetic poet who flirted with Wilde for a time in the late 1880s.
I wonder whether the portrayal of Gray in the Wilde film may have been based upon the account of Gray in a very gossipy book by Rupert Croft-Cooke, Feasting with Panthers. Croft-Cooke also wrote a book about Wilde's sex life that was loaded with salacious anecdotes about folks like John Gray and his very twisted lover, Andre Raffalovich.
Filmfax #97 ... will be available next week. The issue, which can be ordered at www.filmfax.com or found at Borders, Barnes & Noble, Tower Records, and other comic/sci-fi shops, will also feature interviews with DC as well as KLS and Lara Parker.